Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save emileten/2a5433b67d1fe6110c52ff3fe7f63fd4 to your computer and use it in GitHub Desktop.

Select an option

Save emileten/2a5433b67d1fe6110c52ff3fe7f63fd4 to your computer and use it in GitHub Desktop.
get-AWS-lambda-environment-variables-in-dotenv-format
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