Skip to content

Instantly share code, notes, and snippets.

@mrsombre
Created September 29, 2022 13:15
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 mrsombre/bb2d44be50862b303d4503d516850a16 to your computer and use it in GitHub Desktop.
Save mrsombre/bb2d44be50862b303d4503d516850a16 to your computer and use it in GitHub Desktop.
AWS
# list instancess with ip
aws ec2 describe-instances --filters "Name=tag:Team,Values=Tools" --query 'Reservations[*].Instances[*].{Instance:InstanceId,Name:Tags[?Key==`Name`]|[0].Value,IP:PrivateIpAddress}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment