Created
April 7, 2016 16:15
-
-
Save lusis/d292aa0a460ad42fe2bc13b84d47e39d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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