Medium
EC2
Regional
Stopped EC2 instances should be removed after a specified time period
CIS
Description
Flags stopped EC2 instances that have remained stopped beyond the allowed time period.
Remediation
To ensure compliance with this control, periodically review and remove stopped EC2 instances that are no longer needed.
Steps
- Sign in to the AWS Management Console and open the EC2 console at https://console.aws.amazon.com/ec2/.
- In the navigation pane, click on 'Instances'.
- Filter the instances by their state to view only the stopped instances.
- Review the stopped instances and determine if they have been stopped for longer than the specified time period.
- For each instance that has been stopped longer than the specified time and is no longer needed, select the instance.
- Click on 'Actions', then 'Instance State', and choose 'Terminate' to remove the instance.
- Confirm the termination in the dialog box.
Compliance
CIS