AWS lambda layers
Description
To build and deploy AWS Lambda Layers (and Versions). When the code is updated a new Layer Version is deployed and the old version is retained.
The layer's build files (Dockerfile
and build.sh
) are located in subdirectories of layers
.
The build step creates a dist
folder, where the layer content is put. The dist
-folders contain the layer-content.
How-To
- install dependencies
npm i
- build layers
npm run build:layers
- deploy stack with layers
cdk deploy