Skip to content

Instantly share code, notes, and snippets.

@garnaat
Created January 15, 2013 15:31
Show Gist options
  • Save garnaat/4539460 to your computer and use it in GitHub Desktop.
Save garnaat/4539460 to your computer and use it in GitHub Desktop.
import boto.ec2
import boto.ec2.elb
for region in boto.ec2.regions():
ec2_conn = region.connect()
elb_conn = boto.ec2.elb.connect_to_region(region.name)
# do stuff with EC2 and ELB for this region here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment