Created
September 29, 2016 01:06
-
-
Save johnsyweb/61180592c823cf018b36e9e3838c6bb1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
for region in $(aws ec2 describe-regions --region ap-southeast-1 --query 'Regions[].RegionName' --output=text); do | |
echo "EC2 instances in ${region}..." | |
aws ec2 describe-instances --region ${region} --query 'Reservations[].Instances[].Tags[?Key==`Name`].Value' --output=text | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment