Skip to content

Instantly share code, notes, and snippets.

View MossabDiae's full-sized avatar
🔬
Learning

Mossab Diae MossabDiae

🔬
Learning
View GitHub Profile
@MossabDiae
MossabDiae / download_all_lambda_functions.sh
Last active January 24, 2023 13:25 — forked from nemani/download_all_lambda_functions.sh
Download All Lambda Functions
#!/usr/bin/env sh
# dependencies: jq (sudo apt install jq)
# disabled parallel downloading to keep local network / aws happy.
download_code () {
# clean double quotes if found
local OUTPUT=${1//\"/}
local dest=./lambda_functions/$OUTPUT.zip
local URL=$(aws lambda get-function --function-name $OUTPUT --query 'Code.Location')