Skip to content

Instantly share code, notes, and snippets.

@mdesanti
Created February 14, 2016 18:24
Show Gist options
  • Save mdesanti/0cd79542f32110af98c4 to your computer and use it in GitHub Desktop.
Save mdesanti/0cd79542f32110af98c4 to your computer and use it in GitHub Desktop.
Build and upload code to lambda
#!/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
@lvnilesh
Copy link

lvnilesh commented Apr 6, 2016

s/saveEmailSubscriptor/saveEmailSubscribers/g
s/listEmailSubscriptors/listEmailSubscribers/g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment