Skip to content

Instantly share code, notes, and snippets.

@j3tm0t0
Created December 22, 2011 07:17
Show Gist options
  • Save j3tm0t0/1509338 to your computer and use it in GitHub Desktop.
Save j3tm0t0/1509338 to your computer and use it in GitHub Desktop.
check instance shutdown behavior of instances in all regions
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