peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

You must specify an allocation id when mapping an address to a VPC instance error #585

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
conn = 
boto.ec2.connect_to_region("us-east-1",aws_access_key_id='XXXXXXXXXXXXXXXXXXXX',
aws_secret_access_key='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
#first start the instance
for arg in sys.argv:
        str=""
        str+=arg
        str+=""
        instanceId=arg
conn.start_instances(str)

# now create new elastic search IP
address=conn.allocate_address('vpc')
conn.associate_address(instanceId, address.public_ip,address.allocation_id)

I would expect that the address that I allocated will be attach to my instance

I use boto 2.9.5 with python 2.7.4

Original issue reported on code.google.com by gil.k...@kenshoo.com on 19 Jun 2013 at 3:21