AWS Builder Center
Day 10 Of Cloud with AWS: Enable Stop Protection for an EC2 Instance

Day 10 Of Cloud with AWS: Enable Stop Protection for an EC2 Instance

#100DaysOfCloud challenge using AWS

In today's task: Enable Stop Protection for the EC2 instance named.

Steps followed:


Step 1: Retrieve AWS Credentials

  1. Log in to the aws-client host.
  2. Run the following command:
1
showcreds
  1. Copy the displayed:
  • AWS Access Key
  • AWS Secret Key
  • Region information
Use these credentials to log in if required.

Step 2: Open AWS Console

  1. Log in to the AWS Management Console.
  2. Ensure the selected region is:
1
us-east-1
You can verify this from the top-right corner of the console.

Step 3: Open EC2 Dashboard

  1. Search for EC2 in the AWS services search bar.
  2. Open the EC2 Dashboard.

Step 4: Locate the Instance

  1. In the left navigation pane, click Instances.
  2. Search for:
1
xfusion-ec2
  1. Select the instance.

Step 5: Enable Stop Protection

  1. With the instance selected, click:
1
Actions
  1. Navigate to:
1
Instance settings
  1. Click:
1
Change stop protection
  1. Enable:
1
Enable stop protection
  1. Click Save.

What is Stop Protection?

Stop protection prevents users from accidentally stopping an EC2 instance.
When enabled:
  • The instance cannot be stopped from the AWS Console, CLI, or API unless stop protection is disabled first.
  • It helps protect critical production workloads from accidental downtime.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article