Unable to stop EC2 instance

0

Unable to stop the EC2 instance. It gives me following message when I try to stop it. Please help to resolve as soon as possible as it is consuming the billing hours.

Message from portal: Failed to stop the instance i-03980183a24456ae3 The instance 'i-03980183a24456ae3' may not be stopped. Modify its 'disableApiStop' instance attribute and try again.

질문됨 일 년 전276회 조회
1개 답변
0

Hello, The DisableApiStop attribute controls whether the instance can be stopped using the Amazon EC2 console, AWS CLI, or API. You can set the value of this attribute when you launch the instance, while the instance is running, or while the instance is stopped.

You can disable stop protection for a running or stopped instance using one of the following methods.

From Console:

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the left navigator, choose Instances.
  3. Select the instance, and then choose Actions, Instance settings, Change stop protection.
  4. Clear the Enable check box, and then choose Save.

AWS CLI method (Replace your instance id)

aws ec2 modify-instance-attribute
--instance-id i-1234567890abcdef0
--no-disable-api-stop

AWS
답변함 일 년 전
profile pictureAWS
전문가
kentrad
검토됨 일 년 전

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

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

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

관련 콘텐츠