Last active
February 7, 2017 17:14
-
-
Save rtacconi/2d90655ad55324d697ab9f1907b70c5b to your computer and use it in GitHub Desktop.
AWS CLI list instances name with public IP
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 ec2 describe-instances \ | |
--query 'Reservations[*].Instances[*].[Tags[?Key==`Name`].Value|[0],PublicIpAddress]' \ | |
--output table --region us-east-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment