Created
February 14, 2016 18:24
-
-
Save mdesanti/0cd79542f32110af98c4 to your computer and use it in GitHub Desktop.
Build and upload code to lambda
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 | |
echo 'Zipping folders for save function' | |
zip -r Save.zip node_modules save.js | |
echo 'Zipped... uploading to AWS' | |
aws lambda update-function-code --region us-east-1 --function-name saveEmailSubscriptor --zip-file fileb://./Save.zip --profile your-profile | |
echo 'Zipping folders for list function' | |
zip -r List.zip node_modules list.js | |
echo 'Zipped... uploading to AWS' | |
aws lambda update-function-code --region us-east-1 --function-name listEmailSubscriptors --zip-file fileb://./List.zip --profile your-profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
s/saveEmailSubscriptor/saveEmailSubscribers/g
s/listEmailSubscriptors/listEmailSubscribers/g