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
asked 2 years ago1038 views
2 Answers
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
EXPERT
Matt-B
answered 2 years ago
-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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions