A Launch Template acts as a detailed “blueprint” for launching an EC2 instance. It stores all necessary configuration parameters such as the AMI, instance type, key pair, and security group.
Our goal is to create a Launch Template that uses the web server’s AMI (copia-ami) created in the previous step. The Auto Scaling Group will rely on this blueprint to automatically launch new instances consistently and accurately.
🔒 Steps to Follow
1. Access Launch Templates
From the EC2 Dashboard, on the left menu, scroll down to the Instances section and select Launch Templates.
Click on Create launch template.
Start creating a Launch Template
2. Configure Basic Information
Launch template name:copia-launch-template
Template version description:Launch template for Copia (Amazon Clone) servers
Enter basic information for the Launch Template
3. Select AMI (Amazon Machine Image)
In the Application and OS Images (Amazon Machine Image) section, select the My AMIs tab.
Select Owned by me and you will see the copia-ami AMI created in the previous step. Select it.
Select the created copia-ami AMI
4. Select Instance Type and Key Pair
Instance type: Select t3.small.
Key pair (login): Select copia-keypair from the dropdown list.
Select Instance Type and Key Pair
5. Configure Network Settings
In the Network settings section, we do not need to select a Subnet, as the Auto Scaling Group will decide this automatically.
However, we do need to specify the Security Group.