Created
January 9, 2019 15:53
-
-
Save tuergeist/6b0096fb8dc0d0182e4ea7138d77d3ea to your computer and use it in GitHub Desktop.
Backup all your AWS lambda functions code to local disk
This file contains hidden or 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
for funcname in $(aws lambda list-functions| jq -rc '.Functions|.[]|.FunctionName') ; do | |
echo -n $funcname ... | |
wget $(aws lambda get-function --function-name $funcname | jq -rc '.Code.Location') -O $funcname -o /dev/null && echo ok || echo failed | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment