Created
June 4, 2015 18:12
-
-
Save limed/d616813b2f28d3d96a02 to your computer and use it in GitHub Desktop.
List ec2 regions
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
| #!/usr/bin/env python | |
| import boto | |
| import boto.ec2 | |
| regions = [region.name for region in boto.ec2.regions()] | |
| for region in regions: | |
| print region |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment