Created
September 11, 2018 07:50
-
-
Save vdeep/0e2237fe8d74e76621dd8faaa05fda08 to your computer and use it in GitHub Desktop.
Commands to upload a lambda function to aws using aws cli
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
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