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
gefragt vor 7 Monaten530 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 7 Monaten
profile pictureAWS
EXPERTE
überprüft vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen