Skip to content

Instantly share code, notes, and snippets.

@siroken3
Created September 5, 2012 11:15
Show Gist options
  • Save siroken3/3635165 to your computer and use it in GitHub Desktop.
Save siroken3/3635165 to your computer and use it in GitHub Desktop.
botoで任意のリージョンにあるVPCのサブネット一覧を得る
import boto
import boto.ec2
import boto.vpc
region = boto.ec2.get_region('REGION_NAME')
c = boto.connect_vpc(region=region)
subnets = c.get_all_subnets()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment