DEV Community

Jurriaan Proos
Jurriaan Proos

Posted on • Originally published at on

My favorite plugins for the Serverless Framework

The Serverless Framework allows extending its functionality by so-called plugins. Here are some of my favorite plugins for the Serverless Framework in no particular order.


  • Packages Python dependencies with your functions for you.
  • Lots of configuration options to customize final deployment package.
  • Support for requirements.txt, Pipenv, Poetry.


  • Creates and attaches layer with dependencies to your functions.
  • Updates layer only when dependencies change.
  • Faster deployment as only code needs to be packaged.
  • Supports Python (requirements.txt), NodeJS (package.json) and Ruby (Gemfile).


  • A simple plugin to sync local directories to an S3 bucket for e.g. a static website.


  • Up your security level by applying specific IAM roles per function.
  • Limit function’s access to AWS resources to only those required by the function (principle of least privilege).


  • By default, the Serverless Framework creates an S3 bucket for deployment files with a rather cryptic name. Also, for each Serverless project it’ll create a new one. This plugin creates one with specified name and uses that to upload the functions to.


  • Allows writing of if else conditions in serverless.yaml to add/change/remove attributes, e.g. to limit deployment of certain functions to certain environments or turn off the Lambda authorizer when running locally.


  • Want to have a somewhat more exotic CloudFront distribution with Lambda@Edge functions, but the built-in support does not allow you? This plugin recently saved me and maybe it can save you.
  • Allows for more dynamically attaching Lambda@Edge functions to specific PathPatterns of CloudFront distributions defined in the resources section in serverless.yaml

Top comments (0)