Last active
May 20, 2017 16:04
-
-
Save aasmith/5719b0d00727598fa9702dbeec100fcf to your computer and use it in GitHub Desktop.
Get the private IP address of an EC2 instance
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 --instance-ids <id> --output text --query 'Reservations[*].Instances[*].PrivateIpAddress' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment