Created
          December 30, 2019 18:10 
        
      - 
      
- 
        Save juliosmelo/d6543a45508dbed5ee94d21f61a790df to your computer and use it in GitHub Desktop. 
Revisions
- 
        juliosmelo created this gist Dec 30, 2019 .There are no files selected for viewingThis 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash aws_region='us-east-1' functions=$(aws lambda list-functions --region us-east-1 | jq -r '.Functions[].FunctionName') for function in $functions; do datetime=$(date) echo "[$datetime] Downloading Lambda $function" function_url=$(aws lambda get-function --function-name $function --query 'Code.Location' --region $aws_region) url=$(echo $function_url | tr -d '"') wget -O $function.zip $url done;