Skip to content

Instantly share code, notes, and snippets.

@El-Fitz
El-Fitz / gist:f75977b8938ba1eede0cc689b6139c27
Created March 11, 2017 23:20
A shell command to easily and simply update an AWS Lambda Function if it shares the same name as the folder the function's code is in AND push the updated code on github
zip -r lambdaFunction.zip * && aws lambda update-function-code --function-name $(basename "$PWD") --zip-file fileb://lambdaFunction.zip && rm lambdaFunction.zip && git add index.js && git commit && git push
@El-Fitz
El-Fitz / gist:8fb7ec44c1c84a94b2a948bfdf2211e1
Created March 11, 2017 23:13
A shell command to easily and simply update an AWS Lambda Function if it shares the same name as the folder the function's code is in
zip -r lambdaFunction.zip * && aws lambda update-function-code --function-name $(basename "$PWD") --zip-file fileb://lambdaFunction.zip && rm lambdaFunction.zip