Skip to content

Instantly share code, notes, and snippets.

@mndoci
Last active December 12, 2015 06:19
Show Gist options
  • Save mndoci/4728659 to your computer and use it in GitHub Desktop.
Save mndoci/4728659 to your computer and use it in GitHub Desktop.
Various AWS cli calls parsed using jq
aws ec2 describe-images | jq '.Images[] | {name, description}'
aws ec2 describe-instances | jq -c '.Reservations[] | .Instances[] | {InstanceId, InstanceType}'
aws ec2 describe-instances | jq -c '.Reservations[] | .Instances[] | {InstanceId, InstanceType, PublicIpAddress}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment