Created
October 22, 2020 00:55
-
-
Save yeisoncruz16/ef74c8969d29750f92659171555d2a0e to your computer and use it in GitHub Desktop.
simple bash script to create python lambda layer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pymysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After run run.sh, just need to zip all the file and upload it as lambda layer