Skip to content

Instantly share code, notes, and snippets.

@tuergeist
Created January 9, 2019 15:53
Show Gist options
  • Select an option

  • Save tuergeist/6b0096fb8dc0d0182e4ea7138d77d3ea to your computer and use it in GitHub Desktop.

Select an option

Save tuergeist/6b0096fb8dc0d0182e4ea7138d77d3ea to your computer and use it in GitHub Desktop.

Revisions

  1. tuergeist created this gist Jan 9, 2019.
    4 changes: 4 additions & 0 deletions backup_lamda.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    for funcname in $(aws lambda list-functions| jq -rc '.Functions|.[]|.FunctionName') ; do
    echo -n $funcname ...
    wget $(aws lambda get-function --function-name $funcname | jq -rc '.Code.Location') -O $funcname -o /dev/null && echo ok || echo failed
    done