This script package ready-to-upload AWS lambda layer for Python.
- Fill in
requirement.txt
- Run
./create_layer.sh
- Output is a folder
python/...
and its ziplayer_to_upload.zip
- Docker required
- Feel free to change variables in
create_layer.sh
PLATFORM
: whether amd64 or armPY_VERSION
: python version for package installationDOCKER_IMAGE
: docker image if you prefer to use some other ones
- Solve cross platform issue on Mac chips
- One command settle everything
- Almost no footprint on local
- So far the cleanest & easiest way to build lambda layer
- But always interested to learn if there are better ways!