Skip to content

Instantly share code, notes, and snippets.

@chapmanb
Created January 27, 2017 16:44
Show Gist options
  • Save chapmanb/24fe9421b374e085e684bc4def077b70 to your computer and use it in GitHub Desktop.
Save chapmanb/24fe9421b374e085e684bc4def077b70 to your computer and use it in GitHub Desktop.
import boto
conn = boto.connect_vpc()
print "access_key", conn.aws_access_key_id
for vpc in conn.get_all_vpcs(filters={'tag:Name': 'bcbio'}):
print "vpc"
print vpc.id
print vpc.state
print vpc.region
print vpc.tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment