Skip to content

Instantly share code, notes, and snippets.

@vdeep
Created September 11, 2018 07:50
Show Gist options
  • Save vdeep/0e2237fe8d74e76621dd8faaa05fda08 to your computer and use it in GitHub Desktop.
Save vdeep/0e2237fe8d74e76621dd8faaa05fda08 to your computer and use it in GitHub Desktop.
Commands to upload a lambda function to aws using aws cli
Zip up your project:
% zip –X –r ../index.zip *
or if you use 7zip
% 7z a ../index.zip *
Then the aws cli lets you upload:
% aws lambda update-function-code --function-name MyLambdaFunction --zip-file fileb://../index.zip
*****and maybe for you, the secret is
% aws lambda update-function-code --function-name MyLambdaFunction --zip-file fileb://../index.zip --cli-connect-timeout 600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment