More Info:

Idle AWS EC2 instances should be stopped or terminated in order to optimize AWS costs.

Risk Level

Low

Address

Cost optimization

Compliance Standards

AWSWAF

Triage and Remediation

Remediation

The best way to remediate this issue is to stop the idle instances. Here are the step by step instructions to remediate this issue in AWS using the AWS console:

  1. Log in to the AWS Management Console.
  2. Click on the EC2 service.
  3. Select the instances that are idle.
  4. Click on the “Actions” button and select “Instance State” and then click “Stop”.
  5. In the confirmation dialog box, click “Yes, Stop”.
  6. Wait for the instances to stop.
  7. Once the instances have stopped, select them again.
  8. Click on the “Actions” button and select “Instance Settings” and then click “Change Shutdown Behavior”.
  9. In the “Change Shutdown Behavior” dialog box, select “Terminate” and then click “Save”.
  10. Start the instances again when they are required.

By following these steps, you can remediate the EC2 instances that are idle in AWS and ensure that you are not being charged unnecessarily for instances that are not being used.

Additional Reading: