ECS Cluster info
A little script I wrote to print out some ECS info I usually have to use the web for, you can get it from git
Sample output:
~/code/aws/ecs/ecs_cluster_info.py nginx-mysql
==============================
arn : arn:aws:ecs:us-east-1:568557440549:task-definition/nginx:3
definition: arn:aws:ecs:us-east-1:568557440549:task-definition/p-h0-logging-oauth2:3
elb : nginx-mysql
running : 1
desired : 1
pending : 0
==============================
status : RUNNING
instance ip : 192.168.10.10
instance size: t2.micro
instance ami : ami-6fefca0a
task arn : arn:aws:ecs:us-east-1:568557440549:task/b472dc2a-1002-4dea-90b6-01dc855466fb
service arn : arn:aws:ecs:us-east-1:568557440549:task-definition/nginx:3
instance arn : arn:aws:ecs:us-east-1:568557440549:container-instance/d0574a62-d049-41d4-934d-d073f1f14671
==============================
arn : arn:aws:ecs:us-east-1:568557440549:task-definition/mysql:3
definition: arn:aws:ecs:us-east-1:568557440549:task-definition/mysql:3
running : 1
desired : 1
pending : 0
==============================
status : RUNNING
instance ip : 192.168.10.100
instance size: t2.micro
instance ami : ami-6fefca0a
task arn : arn:aws:ecs:us-east-1:568557440549:task/dd1f8ab9-8e6e-47c0-88ed-d0bec5439857
service arn : arn:aws:ecs:us-east-1:568557440549:task-definition/mysql:2
instance arn : arn:aws:ecs:us-east-1:568557440549:container-instance/d0574a62-d049-41d4-934d-d073f2f24672