I am not able to stop or terminate the server

0

Hi Team,

I am not able to stop or terminate my AWS instance. As it shows the error Modify it's 'disableApiStop' instance attribute and try again. I am not able to complete the action. Today i got a abbusive alert for that instance on my mail and tried to terminate the instance and getting the same error might be the server as been accquired by hackers, i don't have any issues in terminating it as it's test server and doesn't as any critical data.

Can somer suggest me on how get resolved from this issue.

Regards, Jagadish

已提問 2 年前檢視次數 5723 次
2 個答案
0

Hi Jagadish

I understand you want to stop/terminate your instance but you are unable to and receive an “disableApiStop” error. You instance has stop proctection enabled [1], to disable you need to select the instance and go to Actions > instance details > Change stop protection, for Stop protection, choose disable.

[1] https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html

Lwazi
已回答 2 年前
0

I faced this issue, but the instance terminate protection was disabled already. What did work for me after I updated my cli tools to version "aws-cli/2.7.20 Python/3.9.11 Darwin/21.5.0 exe/x86_64 prompt/off" was:

aws ec2 modify-instance-attribute --instance-id <instance_id> --no-disable-api-stop

I have a feeling this is a old/new console api incomatablity and wonder if I switched to old console that I might of had success turning it on/off there too.

"aws-cli/2.2.30 Python/3.8.8 Darwin/21.5.0 exe/x86_64 prompt/off" - did not work

已回答 2 年前

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

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

回答問題指南