Description
Hey guys, I wanted to start a bit of a discussion on this topic. I haven't had time to look at or try it, but after the recent AWS announcements it got me thinking this might really help a lot of people to build/deploy serverless apps, specifically ones that need to use python deps included via this plugin (as all of mine do). Right now, the "cost-to-entry" is higher in that many devs have to have docker installed just to use this plugin, and on higher security/locked down environments you can't even have docker.
So the proposal/idea, this layers feature would allow a "ops" guy or even a CI/CD system to push "layers" that add just your python requirements into lambda, and thus making the actual code we need to push on every deploy very thin. At the moment some of my projects I'm pushing upwards of 20MB of compressed code 98% of which is requirements. How amazing would it be to not wait minutes for that to upload and process on Lambda? Instead we would be pushing 200Kb project-specific code that doesn't need to use this plugin whatsoever. This would allow for serverless to be used in higher security environments, and would enable developers to move/deploy/iterate faster.
At first thought, possibly nothing would need to be added to this plugin. Might just be someone would need to use this plugin in the "requirements" layer (aka, a different serverless stack/project). And then the devs can just easily include that layer in their serverless.yml on their project without having to use this plugin, or docker at all. It's a really neat idea, I haven't tried any of it yet. Was curious if anyone had, or anyone had other thoughts/ideas. If anyone tries layers or a comparable pipeline to what I described above, I'd love to hear your experiences. If/when I get some time to evaluate this in the coming weeks I'll share my experiences also.
See:
https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
https://serverless.com/blog/publish-aws-lambda-layers-serverless-framework/