Created
December 2, 2020 16:01
-
-
Save tmurphree/6af8ad09a66870f2197f121b089b272e to your computer and use it in GitHub Desktop.
AWS Lambda zip deployment bash script
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
#!/bin/bash | |
FILE_PATH="tmp/lambdaDeployment.zip"; | |
FUNCTION_NAME="tm-test"; | |
rm -f $FILE_PATH; | |
# make zip with with a whitelist | |
zip -r $FILE_PATH . -i package*.json "src/*" "node_modules/*"; | |
aws lambda update-function-code --function-name $FUNCTION_NAME --region us-east-1 --zip-file fileb://$FILE_PATH; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment