Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. download_code() {
  2. local OUTPUT=$1
  3. aws lambda get-function --function-name $OUTPUT --query 'Code.Location' | xargs wget -O ./functions/$OUTPUT.zip
  4. }
  5.  
  6. mkdir -p functions
  7.  
  8. for run in $(aws lambda list-functions --query 'Functions[].FunctionName' --output text | xargs); do
  9. download_code "$run"
  10. done
  11.  
  12. echo "Completed Downloading all the Lamdba Functions!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement