This rule ensures that all EC2 stopped instances are removed within 30 days for better configuration management.
Rule | EC2 stopped instances should be removed in 30 days |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ Low |
Rule Description
The rule states that any stopped EC2 instances should be removed within a period of 30 days. This rule is aligned with the NIST 800-53 Revision 5 security standard, which requires the timely removal of unused resources to mitigate potential security risks and promote efficient resource utilization.
Troubleshooting Steps (if applicable)
If instances are not being removed within the specified timeframe, you may encounter the following issues:
Necessary Codes (if applicable)
There are no specific codes associated with this rule. However, you can utilize AWS Command Line Interface (CLI) commands to automate the removal process.
Step-by-Step Guide for Remediation
To ensure compliance with the EC2 instance removal policy within 30 days, follow these step-by-step guidelines:
Identify Stopped Instances:
aws ec2 describe-instances --filters "Name=instance-state-name,Values=stopped"
Review Results:
Determine Removal Candidates:
Check Instance State and Lifecycle:
Backup Important Data (if necessary):
Remove Instances:
aws ec2 terminate-instances --instance-ids <comma-separated instance IDs>
Verify Removal:
aws ec2 describe-instances --instance-ids <comma-separated instance IDs>
Schedule Regular Compliance Audits:
By following these steps, you can effectively comply with the NIST 800-53 Revision 5 requirement by removing stopped EC2 instances within the specified time frame.