Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- download_code() {
- local OUTPUT=$1
- aws lambda get-function --function-name $OUTPUT --query 'Code.Location' | xargs wget -O ./functions/$OUTPUT.zip
- }
- mkdir -p functions
- for run in $(aws lambda list-functions --query 'Functions[].FunctionName' --output text | xargs); do
- download_code "$run"
- done
- echo "Completed Downloading all the Lamdba Functions!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement