# Enable EC2 Instance Termination Protection

### Table of contents

* [Tasks](https://abisec.gitbook.io/devsecops/aws/broken-reference)
* [Steps](https://abisec.gitbook.io/devsecops/aws/broken-reference)

#### Tasks <a href="#heading-tasks" id="heading-tasks"></a>

* An instance named `nautilus-ec2` already exists in `us-east-1` region. Enable `termination protection` for the same.

#### Steps <a href="#heading-steps" id="heading-steps"></a>

1. We have instance named **nautilus-ec2.**
2.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728307308401/dea15c2d-93d6-4864-a08b-961f143d10cf.png?auto=compress,format\&format=webp)
```

```
Select the running instance and check actions → Instance Settings → Change Termination Protection
```

3\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728307489001/6b036315-e5b1-4ac8-b5c7-3798bf5cbd5e.png?auto=compress,format\&format=webp)

Enable and save.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728307573819/bd4d4d54-b33a-4744-8343-e4595b8adc25.png?auto=compress,format\&format=webp)
```

4\.

* Successfully enabled termination protection for instance i-09300aa3caeac656d. The instance can't be deleted.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728307654635/45fc7c84-66ab-42cc-a4a4-3258441c8737.png?auto=compress,format\&format=webp)

\#ec2\_termination\_protection

\#aws

\#happy\_learning

AWSAmazon Web ServicesCloudCloud Computinginstance
