Medium EC2 Regional

Stopped EC2 instances should be removed after a specified time period

CIS

Description

Checks whether stopped Amazon EC2 instances have been removed after a specified time period.


Remediation

To ensure compliance with this control, periodically review and remove stopped EC2 instances that are no longer needed.

Steps

  1. Sign in to the AWS Management Console and open the EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the navigation pane, click on 'Instances'.
  3. Filter the instances by their state to view only the stopped instances.
  4. Review the stopped instances and determine if they have been stopped for longer than the specified time period.
  5. For each instance that has been stopped longer than the specified time and is no longer needed, select the instance.
  6. Click on 'Actions', then 'Instance State', and choose 'Terminate' to remove the instance.
  7. Confirm the termination in the dialog box.

Compliance

CIS