Created
September 7, 2018 14:18
-
-
Save acdha/c8010c86c795451fc7e2b8d06dd214ae to your computer and use it in GitHub Desktop.
Using jq to export bash-compatible exports for an AWS ECS task definition's environment stanza
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
aws ecs describe-task-definition --task-definition=sentry | jq -r '.taskDefinition.containerDefinitions[] | .environment[] | "export \(.name)=\(.value)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment