Created
April 28, 2023 06:02
-
-
Save emileten/2a5433b67d1fe6110c52ff3fe7f63fd4 to your computer and use it in GitHub Desktop.
get-AWS-lambda-environment-variables-in-dotenv-format
This file contains hidden or 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
| aws lambda get-function-configuration --function-name <function-name> --query 'Environment.Variables' --output json | jq -r 'to_entries | .[] | .key + "=" + .value' > .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment