More Info:

EC2 instance running indefinitely in your AWS your account could increase the risk of potential issues.

Risk Level

Informational

Address

Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the issue of long running instances in AWS using the AWS console, you can follow the below steps:

  1. Log in to your AWS Management Console.

  2. Go to the EC2 dashboard.

  3. Under the Instances section, select the instance that has been running for a long time.

  4. Stop the instance by right-clicking on it and selecting “Instance State” > “Stop”.

  5. Once the instance is stopped, right-click on it again and select “Instance Settings” > “Change Shutdown Behavior”.

  6. From the drop-down menu, select “Terminate”.

  7. Click “Apply” and then “Save”.

  8. Start a new instance with the same configuration as the terminated instance.

  9. Once the new instance is running, ensure that all the data and configurations from the old instance are properly transferred to the new instance.

  10. Finally, terminate the old instance to avoid any unnecessary charges.

By following these steps, you can remediate the issue of long running instances in AWS and ensure that your cloud infrastructure is optimized for performance and cost.

Additional Reading: