vavavr00m / boto

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

InvalidInstanceID.NotFound #577

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This script was work correctly, but now it stop working and I have this error:  

 reservations = ec2conn.get_all_instances(instance_id)
  File "/usr/local/python_27/lib/python2.7/site-packages/boto-2.1.1-py2.7.egg/boto/ec2/connection.py", line 464, in get_all_instances
    [('item', Reservation)], verb='POST')
  File "/usr/local/python_27/lib/python2.7/site-packages/boto-2.1.1-py2.7.egg/boto/connection.py", line 862, in get_list
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidInstanceID.NotFound</Code><Message>The 
instance ID 'xxxxxxxx' does not 
exist</Message></Error></Errors><RequestID>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</Re
questID></Response>

Original issue reported on code.google.com by aymen.be...@predictix.com on 11 Jan 2012 at 8:52

GoogleCodeExporter commented 9 years ago
Here is the part of the scrip where I have the issue:
ec2conn = ec2.connection.EC2Connection(ACCESS, SECRET)
reservations = ec2conn.get_all_instances()

Original comment by aymen.be...@predictix.com on 11 Jan 2012 at 8:54

GoogleCodeExporter commented 9 years ago
The issue is that AWS changed region number witch caused the problem.
us-east-1 was region[1] and now it's region[2] 

Original comment by aymen.be...@predictix.com on 11 Jan 2012 at 11:22

GoogleCodeExporter commented 9 years ago
I am currently experiencing this problem with eu-west-1 region

Original comment by yig...@gmail.com on 28 Aug 2012 at 12:55