Created
March 12, 2015 23:24
-
-
Save alexclifford/8f181622f0eaa0b6dd78 to your computer and use it in GitHub Desktop.
Get all private IP addresses currently assigned
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 --query 'Reservations[*].Instances[*].PrivateIpAddress' --output text | sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4 | |
# or | |
aws ec2 describe-instances --query 'Reservations[*].Instances[*]' --output text | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment