Skip to content

Instantly share code, notes, and snippets.

@toddlers
Created April 10, 2018 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddlers/cc9a18e3f5d88bfb6c426e332242041e to your computer and use it in GitHub Desktop.
Save toddlers/cc9a18e3f5d88bfb6c426e332242041e to your computer and use it in GitHub Desktop.
aws instance ip and id
aws ec2 describe-instances –region=us-east-1 | jq ‘.”Reservations”[].”Instances”[] | .PrivateIpAddress + ” ” + .InstanceType’ | sed s/\”//g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment