Unable to stop a spot instance

0

Hi all,

I have a persistent spot instance. I have created these before and haven't had any issues stopping them, but I am unable to stop this one. I have tried a CLI --force stop and I am getting the same thing I see in the Console UI:

An error occurred (IncorrectSpotRequestState) when calling the StopInstances operation: You can't stop the Spot Instance '<instance id redacted>' because the associated Spot Instance request is not in an appropriate state to support stop.

I don't want to keep getting charged.

Thanks!

PFloyd
asked 6 months ago484 views
1 Answer
0

Hello.

There are restrictions on stopping Spot Instances, have you checked them?
I think it is a good idea to terminate the Spot Instance if the stop request is cancelled.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#stopping-a-spot-instance

You can only stop a Spot Instance if the Spot Instance was launched from a persistent Spot Instance request.
You can't stop a Spot Instance if the associated Spot Instance request is cancelled. When the Spot Instance request is cancelled, you can only terminate the Spot Instance.
You can't stop a Spot Instance if it is part of a fleet or launch group, or Availability Zone group.

profile picture
EXPERT
answered 6 months ago
profile pictureAWS
EXPERT
reviewed 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions