# Ensure no EC2 Stopped Instances

- Source: https://support.icompaas.com/support/solutions/articles/62000223475-ensure-no-ec2-stopped-instances
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Security Controls](https://support.icompaas.com/support/solutions/62000065178) › [AWS Services](https://support.icompaas.com/support/solutions/folders/62000097507)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

### **Description:**

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS Cloud. Using Amazon EC2 eliminates the need to invest in hardware upfront, so you can develop and deploy applications faster.

**Rationale:** 

If you decide that you no longer need an instance, you can terminate it. As soon as the state of an instance changes to shutting down or terminated, we stop charging for that instance. 

### **I******mpact:****

When you stop the EC2 instance, AWS stops usage charges for the machine But the attached EBS volume (Root) is not deleted and it is still charged in the background, If the EC2 instance is terminated, Then only volume will get automatically deleted, You can changes/do setting in EC2 volume settings delete on Termination checkbox.

  

  

![](https://support.icompaas.com/assets/kb/40ae6633ca34f557.png)

  

  

**Default value :**

By default, The EC2 instance is Running

**Pre-requisites**

We Created EC2 instances with IAM  roles and policies 

  

  

**Remediation:**

**Test plan**

**01:**Sign into the AWS Management Console.

**02:**open  to EC2 dashboard at [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/ "https://console.aws.amazon.com/ec2/").

**03:**In the left navigation panel, under the **INSTANCES** section, choose **Instances**.![](https://support.icompaas.com/assets/kb/3482588c86e19583.png)

**04:**Select the  **instance id ![](https://support.icompaas.com/assets/kb/77a4ebe890579560.png)** 

  

**05**:Check the Instance Status ![](https://support.icompaas.com/assets/kb/e5fd854098876331.png) 

  

  

  

**Using AWS CLI:**

**To check the status of the instance** 

aws ec2 describe-instance-status --instance-id <value>

  

  

**implementation step**:

**Step01**:login into the AWS Management Console.

**Step 02**:Navigate to EC2 dashboard at [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/ "https://console.aws.amazon.com/ec2/").

**Step 03:**In the left navigation panel, under the **INSTANCES** section

**Step 04:**Select the Stopped EC2 instance that you want to change.

**Step 05:** Select Instance State ![](https://support.icompaas.com/assets/kb/08f66088f9d6ada2.png)  

**Step 06:** click **start** to the instance.![](https://support.icompaas.com/assets/kb/7fdbd24a2169035e.png)

**OR**

**Step 07:**  Repeat the steps 1 to 5

  

**Step 08:** Click on Terminate instances.

![](https://support.icompaas.com/assets/kb/782cbc4659973fc7.png)

  

**Step 09:** It will ask you to confirm terminate it click on terminate.![](https://support.icompaas.com/assets/kb/d10823d2a736bc9f.png)

  

**Using AWS CLI:**

**To terminate the instance** 

aws ec2 terminate-instances --instance-ids <value>

**To start the instance** 

aws ec2 start-instances
  --region <region-name>
  --instance-ids <instance-id>

### **Back out plan :**

 01:Sign into the AWS Management Console.

02:open to EC2 dashboard at [https://console.aws.amazon.com/ec2/](https://console.aws.amazon.com/ec2/).

03:In the left navigation panel, under the INSTANCES section, choose Instances.

04: Select the running instance id 

05: Instance state, choose select Stop

  

![](https://support.icompaas.com/assets/kb/e612e99e334a2a1e.png)

  

**Using AWS CLI:**

aws ec2 stop-instances --instance-ids <value>

  

### **Reference:**

[https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#termination-overview](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#termination-overview "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#termination-overview") 

[![](https://support.icompaas.com/assets/kb/c16dc5c333743fc2.png)describe-instances — AWS CLI 1.22.76 Command Reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html) 

[![](https://support.icompaas.com/assets/kb/536b2622ae1ffd5e.png)stop-instances — AWS CLI 1.22.75 Command Reference](https://docs.aws.amazon.com/cli/latest/reference/ec2/stop-instances.html) 

[![](https://support.icompaas.com/assets/kb/64257f1f13988219.png)ec2-stopped-instance - Amazon Config](https://docs.amazonaws.cn/en_us/config/latest/developerguide/ec2-stopped-instance.html) 

[stop-instances — AWS CLI 2.5.0 Command Reference](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/stop-instances.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
