import boto
import boto, boto.ec2
region = boto.ec2.regioninfo.RegionInfo(name="nova",endpoint="192.168.56.101")
print region
conn = boto.connect_vpc(aws_access_key_id="b56adadedd394b5f8093d4bdfe858bf8",
aws_secret_access_key="bf541989b3f845e88ff5e66b3e98dcbe",
is_secure=False,
region=region,
port=8773,
path="/services/Cloud")
#print dir(conn)
print conn.get_all_vpcs()
No comments:
Post a Comment