losDaniel / spot-connect

pip install spot-connect. Module that makes it easy to use AWS virtual machines at discount pricing
MIT License
19 stars 6 forks source link

IndexError: list index out of range in describe_instance_status when using spot_connect command line or spotted #9

Closed losDaniel closed 4 years ago

losDaniel commented 4 years ago

One common problem to encounter when trying to connect is the one seen in the image below. This

image

losDaniel commented 4 years ago

IndexError appears because when attempting to find the instance we've created using describe_instance_status we cannot find it.

This usually happens when you attempt to launch a spot instance with the same name an older spot instance you have already terminated. Here is a walk through of the events:

Solution:

losDaniel commented 4 years ago

Updated the module to return an error with a description to the user in version 1.0.2