-
-
Save JoaoCarabetta/4b1645699c00fbce044fd803f9cca04b to your computer and use it in GitHub Desktop.
Download All 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
# Parallelly download all aws-lambda functions | |
# Assumes you have ran `aws configure` and have output-mode as "text" | |
# Works with "aws-cli/1.16.72 Python/3.6.7 Linux/4.15.0-42-generic botocore/1.12.62" | |
download_code () { | |
local OUTPUT=$1 | |
aws lambda get-function --function-name $OUTPUT | head -n 1 | cut -f 2 | xargs wget -O ./lambda_functions/$OUTPUT.zip | |
} | |
mkdir lambda_functions | |
for run in $(aws lambda list-functions | cut -f 6 | xargs); | |
doth | |
download_code "$run" & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment