More Info:

Every EC2 instance should be launched inside an Auto Scaling Group (ASG) in order to follow the best AWS reliability and security practices.

Risk Level

Low

Address

Reliability

Compliance Standards

AWSWAF

Triage and Remediation

Remediation

To remediate the misconfiguration “Instance Should Be Launched In Auto Scaling Group” for AWS using AWS console, follow the below steps:

  1. Open the AWS Management Console and navigate to the EC2 dashboard.
  2. Select the instance that needs to be launched in an Auto Scaling Group.
  3. Stop the instance by selecting the instance and clicking on the “Instance State” button, then click on “Stop”.
  4. Create a new Auto Scaling Group by selecting “Auto Scaling Groups” from the left-hand menu and clicking on the “Create Auto Scaling Group” button.
  5. Follow the prompts to create the new Auto Scaling Group, making sure to select the appropriate instance type and other settings.
  6. Once the Auto Scaling Group has been created, add the stopped instance to the group by selecting the instance and clicking on the “Actions” button, then selecting “Instance Settings” and “Move instance to another Auto Scaling group”.
  7. Select the new Auto Scaling Group from the list and click “Move instance”.
  8. Start the instance by selecting the instance and clicking on the “Instance State” button, then clicking on “Start”.

After completing these steps, the instance will be launched in an Auto Scaling Group, which will help ensure that it is always running and available to handle traffic.

Additional Reading: