Skip to content

Instantly share code, notes, and snippets.

@coryodaniel
Created March 9, 2017 18:15
Show Gist options
  • Select an option

  • Save coryodaniel/7780816de2ddb9d5bd377adef75c05e3 to your computer and use it in GitHub Desktop.

Select an option

Save coryodaniel/7780816de2ddb9d5bd377adef75c05e3 to your computer and use it in GitHub Desktop.
ECS Agent what are your intensions with my tasks?
yum install jq
curl 127.0.0.1:51678/v1/tasks | jq '[.Tasks[] | {task: "\(.Family):\(.Version)",status: "\(.KnownStatus) -> \(.DesiredStatus)", dockerId: .Containers[0] | .DockerId}] | sort_by(.task,.dockerId)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment