Quick snippet to get the function code
wget -O function.zip $(aws lambda get-function --function-name MyFunctionName --query 'Code.Location' --output text)
And another to update lambda with the latest
cd package
zip -r9 ../function.zip .
cd ..
zip -g function.zip function.py
aws lambda update-function-code --function-name MyFunctionName --zip-file fileb://function.zip
No Comments
You can leave the first : )