Skip to content

Instantly share code, notes, and snippets.

@jmhale
Created July 22, 2020 13:29
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 jmhale/6b699c6523a89f8a3b941198b5fd3d90 to your computer and use it in GitHub Desktop.
Save jmhale/6b699c6523a89f8a3b941198b5fd3d90 to your computer and use it in GitHub Desktop.
EC2 describe instances in table
aws ec2 describe-instances --query "Reservations[*].Instances[*].{IPAddress:PrivateIpAddress,Name:Tags[?Key=='Name']|[0].Value,Status:State.Name}" --filters Name=instance-state-name,Values=running --output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment