Created
October 30, 2019 06:08
-
-
Save EngineerLabShimazu/6947fb0950d05222d516a5b29aa9e181 to your computer and use it in GitHub Desktop.
Deploy to lambda in python3.7
This file contains hidden or 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
#!/usr/bin/env bash | |
LAMBDA_NAME="your-lambda-name" | |
cd venv/lib/python3.7/site-packages | |
zip -r9 ${OLDPWD}/function.zip . | |
cd ${OLDPWD} | |
cd ./lambda/custom/ | |
zip -g ../../function.zip your_function.py | |
cd ${OLDPWD} | |
aws lambda update-function-code \ | |
--function-name ${LAMBDA_NAME} \ | |
--zip-file fileb://function.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
いいですね!