Profile picture
Alex DeBrie @alexbdebrie
, 10 tweets, 3 min read Read on Twitter
Smart, fair thoughts here by @ryan_marsh about the Serverless Framework plugin system. Thread coming with my thoughts on good (and less good) uses of @goserverless plugins.

Initial tweet, since I can't thread on a retweet:
IMO, a SF plugin is best in three scenarios:

1) Extending the Framework's DSL to easily add more resources to your CloudFormation template. Example here is @acloudguru's Alerts plugin to add monitoring to your service.
2) Plugins that help package up your Lambda function. Example here is serverless-python-requirements, as Python reqs + Lambda is a huge hassle w/o it. Lots of undifferentiated heavy lifting there. serverless-webpack, serverless-http, and serverless-wsgi also relevant here.
3) Plugins that add non-deployment functionality, such as improved local development experience. serverless-offline, serverless-dynamodb-local are good examples here.
The tougher examples are ones that @ryan_marsh mentioned where it's manipulating AWS resources on a deploy outside of CloudFormation. To me, it's almost always due to a limitation in CloudFormation itself. Two categories here:
1) CloudFormation doesn't support certain things. Examples here include when new AWS features come out and aren't supported (though CF team is getting much better/faster here!). A persistent example here is attaching a Lambda to an S3 event on an existing bucket. Can't do in CF.
2) Second category is when CloudFormation is just the wrong model, intrinsically. serverless-finch is a good example -- there's not a way (that I know of) to include static file updates within a CloudFormation template.
For the plugins around CF limitations, there's not a great answer. I agree the `aws s3 sync` is a good, safe way to handle it and would be my preference for large, production sites.. But many people, esp. w/o cloud experience, don't want to learn multiple different toolchains.
I think it gets to personal preference at that point, and I can see either. And finally, I disagree that SAM helps with this 🙂. If you don't want to use the iffy plugins w/ SF, don't use them! But with SAM, you don't get the great uses of plugins either.
cc @ben11kehoe, who initially brought this thread to my attention
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Alex DeBrie
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!