You can use DescribeSpotInstanceRequests
to find a running Spot instance by examining the response. If the status of the Spot instance is fulfilled
, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot
.
Spot instance requests are deleted 4 hours after they are canceled and their instances are terminated.