Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
406 B
2
Indexable
Never
# Define the Lambda function name and the output file name
FUNCTION_NAME=<your-function-name>
OUTPUT_FILE_NAME=<output-file-name>.zip

# Get the pre-signed URL for the Lambda function's deployment package
PRE_SIGNED_URL=$(aws lambda get-function --function-name $FUNCTION_NAME --query 'Code.Location' --output text)

# Download the deployment package using curl
curl -o $OUTPUT_FILE_NAME "$PRE_SIGNED_URL"
Leave a Comment