Skip to content

Instantly share code, notes, and snippets.

@yeisoncruz16
Created October 22, 2020 00:55
Show Gist options
  • Save yeisoncruz16/ef74c8969d29750f92659171555d2a0e to your computer and use it in GitHub Desktop.
Save yeisoncruz16/ef74c8969d29750f92659171555d2a0e to your computer and use it in GitHub Desktop.
simple bash script to create python lambda layer
export PKG_DIR="python"
rm -rf ${PKG_DIR} && mkdir -p ${PKG_DIR}
docker run --rm -v $(pwd):/foo -w /foo lambci/lambda:build-python3.6 \
pip install -r requirements.txt --no-deps -t ${PKG_DIR}
@yeisoncruz16
Copy link
Author

After run run.sh, just need to zip all the file and upload it as lambda layer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment