Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davehorner/893c7e760b8b471e9cecec36a46614ac to your computer and use it in GitHub Desktop.
Save davehorner/893c7e760b8b471e9cecec36a46614ac to your computer and use it in GitHub Desktop.
aws query ec2 ips by name filter
aws --no-verify-ssl ec2 describe-instances --filters="Name=tag:Name,Values=*example*" --output json --query "Reservations[*].Instances[*].[PrivateIpAddress,InstanceId,Tags[?Key==`Name`].Value]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment