Skip to content

Instantly share code, notes, and snippets.

@aasmith
Last active May 20, 2017 16:04
Show Gist options
  • Save aasmith/5719b0d00727598fa9702dbeec100fcf to your computer and use it in GitHub Desktop.
Save aasmith/5719b0d00727598fa9702dbeec100fcf to your computer and use it in GitHub Desktop.
Get the private IP address of an EC2 instance
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