AMIs (Amazon Machine Images) store important information such as the operating system, applications, and configuration of an EC2 instance. When you create an AMI, you ensure that each new server you create has the same configuration and is ready to go right away.
A Launch Template is a tool used to configure new EC2 instances, including choosing the AMI, instance type, network configuration, and security options. When you need to create one or more servers with the same configuration, simply use a pre-configured Launch Template for quick and easy deployment.
In the EC2 management interface, in the right panel
In the configuration table for Create AMI, we proceed to fill in the following information
FCJ-Management-AMI
AMI for FCJ-Management
After creating the AMI, we will check the AMI just created
In the EC2 management interface, in the right panel
In the Create launch template panel, fill in the following information
In the Launch template name and description section
Launch template name FCJ-Management-template
Template version description Template for FCJ Management
In the Application and OS Image (Amazon Machine Image) section
Select My AMIs
Select Owned by me
Select the type Amazon Machine Image (AMI), select the AMI created FCJ-Management-AMI
In the Instance type section
Select the type Instance t2.micro
In the Key pair (logical) section
Select the Key pair name named fcj-key1
Network settings
Select the public subnet AutoScaling-Lab-public-ap-southeast-1a
Select Select existing security group
Select the security group FCJ-Management-SG
Finally, select Create launch template
Check the Launch Template just created
Complete the creation of the Launch Template.