This file contains 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 characters
#!/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') |