Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
so0k opened this issue Jul 6, 2016 · 0 comments
Open

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

so0k opened this issue Jul 6, 2016 · 0 comments

Comments

@so0k
Copy link
Owner

so0k commented Jul 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant