Created
December 22, 2011 07:17
-
-
Save j3tm0t0/1509338 to your computer and use it in GitHub Desktop.
check instance shutdown behavior of instances in all regions
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
for region in `ec2-describe-regions | awk '{print $2}'` ; do for i in `ec2-describe-instances --region $region -F "root-device-type=ebs" | grep ^INSTANCE | awK '{print $2}'` ; do echo -n "$region " ; ec2-describe-instance-attribute --region $region --instance-initiated-shutdown-behavior $i ; done ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment