Skip to content

Instantly share code, notes, and snippets.

@eugenestarchenko
Forked from coryodaniel/ecs-tasks.sh
Created June 14, 2017 12:53
Show Gist options
  • Select an option

  • Save eugenestarchenko/28341eb69fe9707fa072c2e80c000507 to your computer and use it in GitHub Desktop.

Select an option

Save eugenestarchenko/28341eb69fe9707fa072c2e80c000507 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