Trying to stop and terminate an instance, but it has a warning: "The instance 'i-0e571b9423e63be86' may not be stopped. Modify its 'disableApiStop' instance attribute and try again."

0

I accidentally leaked my AWS keys on a git repo (still learning) and someone hacked into my AWS account, I am unable to stop and terminate the instance as it keeps coming up with the following error: The instance 'i-0e571b9423e63be86' may not be stopped. Modify its 'disableApiStop' instance attribute and try again. I tried modifying it through the CLI and the console, but nothing seems to be working. Any help would be greatly appreciated. Thank you!

JasmynS
질문됨 2년 전1027회 조회
2개 답변
0

Hi THere you mentioned that

I tried modifying it through the CLI and the console, but nothing seems to be working.

Could you provide a little more detail here? Are there any error messages when you try to disable stop protection? If your account credentials were compromised, its possible that your permissions were removed or there is some automated process that is re-enabling stop protection. Can you check your account for any lambda functions or other services like SNS topics or EventBridge Event Busses that might look unfamiliar?

profile pictureAWS
전문가
Matt-B
답변함 2년 전
-1

Hi,

For information about disabling stop protection ('disableApiStop'), please see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#disable-stop-protection-on-running-or-stopped-instance.

Kind regards, Marilyn

AWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠