That information comes from the DescribeInstanceStatus
request and is available in boto via the get_all_instance_status
method. See:
for details.
Domanda
I'm using instace.update() to get the status, which returns stopped, running or ...
But there is another status in the ec2 web interface which also shows it's initializing or ... 2/2 checks passed.
Is there a way to get the status of initializing?..
Soluzione
That information comes from the DescribeInstanceStatus
request and is available in boto via the get_all_instance_status
method. See:
for details.
Altri suggerimenti
EDIT:
status=conn.get_all_instance_status(instance_ids=i-****)
print status[0].system_status.details
or
print status[0].system_status.details["reachability"]
============================================================
OLDER:
This might help you. It tell status about all the instances, you can use simple 'if' for filtering an instance.
import boto;
ec2=boto.connect_ec2()
instances= ec2.get_only_instances()
for instance in instances:
print instance.tags['Name'] , " is ", instance.state