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
已提問 7 個月前檢視次數 528 次
1 個回答
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
專家
已回答 7 個月前
profile pictureAWS
專家
已審閱 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南