JP's Blog

  • GitHub * Flickr * Resume
  • Reviews
  • Programming
  • Photography
  • Maker
  • Writing
  • Research
  • RSS

Parsing AWS instance data with jq

2015-04-01

Semi-random amusing code snippet of the day:

aws ec2 describe-instances | jq << EOF
    .[][].Instances[]
    | select(.Tags[]?.Value == "production")
    | .PrivateIpAddress
EOF

read more...

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming/languages

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license