I have several aws lambda functions and I want to download all the source code, in separated zip files(preferably, this is the way I uploaded them).
I was able to list the functions and configurations but not to get the source code.
You can do this via get-function:
aws lambda get-function --function-name foo --query 'Code.Location'
This returns a pre-signed URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.
See: get-function — AWS CLI Command Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With