Last active
June 20, 2016 14:54
-
-
Save ejoubaud/a04818f4e23b525c1728bc3ed9522070 to your computer and use it in GitHub Desktop.
One-liner to list instance private IPs with the AWS CLI
This file contains hidden or 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 --region us-east-1 --query 'Reservations[].Instances[].[ Tags[?Key==`Name`].Value | [0], PrivateIpAddress, PublicIpAddress ]' --output text | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment