code for article pfeilbr/serverless-lambda-layers-playground
learn lambda layers with serverless framework
layers are applied in order, meaning last layer in array is applied last and will overwrite any common files in other layers.
# install deps npm i # run via local packages sls npm run sls -- deploy # invoke and view logs npm run sls -- invoke --function hello --log
- serverless docs | AWS - Layers
- Part 2 — Create Lambda Layers with Serverless Framework and Offline support