Created
July 28, 2020 18:45
-
-
Save davehorner/893c7e760b8b471e9cecec36a46614ac to your computer and use it in GitHub Desktop.
aws query ec2 ips by name filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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