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
demandé il y a 7 mois528 vues
1 réponse
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
répondu il y a 7 mois
profile pictureAWS
EXPERT
vérifié il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions