Skip to content

Instantly share code, notes, and snippets.

@limed
Created June 4, 2015 18:12
Show Gist options
  • Select an option

  • Save limed/d616813b2f28d3d96a02 to your computer and use it in GitHub Desktop.

Select an option

Save limed/d616813b2f28d3d96a02 to your computer and use it in GitHub Desktop.
List ec2 regions
#!/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