Setting up Auto Scaling
Before we add our application to the Auto Scaling group, review your application thoroughly, and consider the following points:
- What are the existing resources your application will use, for example, Amazon Machine Images (AMIs) or security groups?
- Is your application spread across multiple Availability Zones?
- Do you need to scale in (decrease capacity) or scale out (increase capacity), or does your application always run with a steady load?
- What metrics are relevant for your application's performance?
- How long will it take to configure and launch your server?
Once you have reviewed all of the preceding points and decided that Auto Scaling is appropriate for your application, it's time to create a new launch template.
Creating a launch template
To configure EC2 instances launched by an Auto Scaling group, we need to create a launch template. A launch template contains information about AMIs, security groups, instance...