Last active
February 25, 2019 14:00
-
-
Save JoaoCarabetta/7e63f064a6a9528f9e5baf3d20313e01 to your computer and use it in GitHub Desktop.
Update python function to AWS lambda
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
# update-function-code-aws-lambda.sh <function path> <lambda-function-name> | |
# make sure that the aws-cli is configured in the same region and with a user with permission | |
rm temp.zip | |
echo ------ Zipping -------- | |
cp $1 lambda_function.py | |
zip temp.zip lambda_function.py | |
rm lambda_function.py | |
echo ------ Updating Lambda ------ | |
aws lambda update-function-code --function-name $2 --zip-file "fileb://temp.zip" | |
rm temp.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment