Bash script to download all your Lambda functions.
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
|#You need to have aws-cli installed and configured|
|#Credits to Reddit user u/aa93 for the suggestions|
|aws lambda list-functions | \|
|grep FunctionName | \|
|cut -d '"' -f4 | \|
|while read -r name; do|
|aws lambda get-function --function-name $name | tail -n 3 | egrep -o 'https?://[^ ]+' | sed 's/"//' | xargs wget -O ./code/$name.zip|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This worked for me using git-bash terminal on windows.