Created
April 1, 2018 04:58
-
-
Save ronamosa/0475a52a3798ffbaad75f53c1ae06426 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# description: lists EC2 instances in ALL regions. | |
# credit: https://github.com/aws/aws-cli/issues/1777 | |
for region in `aws ec2 describe-regions --query Regions[*].[RegionName] --output text` | |
do | |
echo -e "\nListing Instances in region:'$region'..." | |
aws ec2 describe-instances --region $region | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment