1 Answer
- Newest
- Most votes
- Most comments
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:
- Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
- In the left navigator, choose Instances.
- Select the instance, and then choose Actions, Instance settings, Change stop protection.
- 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
answered a year ago
Relevant content
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago