so0k / ecs-sample

Sample for ECS demo
13 stars 7 forks source link

Use aws --filters and --query instead of jq #2

Open so0k opened 8 years ago

so0k commented 8 years ago

for example:

aws ec2 describe-instances \
 --filters Name=tag:elasticbeanstalk:environment-name,Values=myebenv \
 --query Reservations[].Instances[].NetworkInterfaces[0].Association.PublicIp

see also: http://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html