Skip to content

Instantly share code, notes, and snippets.

@lusis
Created April 7, 2016 16:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/d292aa0a460ad42fe2bc13b84d47e39d to your computer and use it in GitHub Desktop.
Save lusis/d292aa0a460ad42fe2bc13b84d47e39d to your computer and use it in GitHub Desktop.
aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | select(.State.Name |contains("running")) | select(.Tags != null) | (.Tags | from_entries) as $tags | [.PrivateIpAddress,$tags.Name,.KeyName] | @tsv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment