Skip to content

Instantly share code, notes, and snippets.

@flrichar
Created July 22, 2021 18:41
Show Gist options
  • Select an option

  • Save flrichar/c98812afcf6d623252b881a34cb1d567 to your computer and use it in GitHub Desktop.

Select an option

Save flrichar/c98812afcf6d623252b881a34cb1d567 to your computer and use it in GitHub Desktop.
### grab nameTags privIP and IPv6 addrs
aws ec2 describe-instances --profile=mongooseZ13 --region=ca-central-1 --query 'Reservations[].Instances[].[Tags[?Key==`Name`] | [0].Value, InstanceId, PrivateIpAddress, NetworkInterfaces[].Ipv6Addresses]' --output=text
# note I dont care about EIPs ... left that as an excercise for the reader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment