Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using jq to export bash-compatible exports for an AWS ECS task definition's environment stanza
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
You can’t perform that action at this time.