Auto-scaling in Amazon EC2 provides a solution to managing your computing resources automatically. It means you can add or remove compute resources based on demand.
Here are the steps to auto-scale your instance in Amazon EC2:
Launch and configure an EC2 instance: You need to configure an EC2 instance which meets the requirements for auto-scaling. Make sure to launch your instance in an Availability Zone with compatible services and resources.
Create an Auto Scaling group: Go to the Auto Scaling panel in the AWS Management Console. Select the Region where your EC2 instance is running, then create a new Auto Scaling group on the “Auto Scaling Groups” tab. Add a new launch configuration for the group. Select the instance size and other settings to specify how the instances should be launched.
Define scaling policies: Set up the scaling policies for the Auto Scaling group. Determine when to scale by setting conditions, the minimum instances, maximum instances and the desired capacity.
Test the Auto Scaling: Test the Auto Scaling by simulated launches and check the results of the Auto Scaling activity.
More info available here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html