Welcome to CloudAffaire and this is Debjeet.
In the last blog post, we have discussed how to create a Network Load Balancer for a web server.
In this blog post, we are going to discuss Launch Configuration
A launch configuration serves as a template that an Auto Scaling Group can use to launch instances. A launch configuration contains all the necessary configuration details like AMI, instance type, security groups, key pairs, block device mapping etc. to launch an instance. A launch configuration once created cannot be modified. if you want to change the launch configuration for an Auto Scaling group, you must create a launch configuration and then update your Auto Scaling group with the new launch configuration. To overcome this limitation AWS now provides Launch template which is similar to launch configuration with additional features like versioning.
Whenever you create an Auto Scaling group, you must specify a launch configuration, a launch template, or an EC2 instance. When you create an Auto Scaling group using an EC2 instance, Amazon EC2 Auto Scaling automatically creates a launch configuration for you and associates it with the Auto Scaling group. Alternatively, if you create a launch template, you can use your launch template to create an Auto Scaling group instead of creating a launch configuration.
Create a Launch Configuration
Step 1: Login to AWS console and click EC2 under compute
Step 2: Navigate to ‘Launch Configurations’ located under AUTO SCALING and click ‘Create launch configuration’.
Step 3: Select an AMI for your Launch Configuration and click ‘Select’.
Step 4: Select instance type and click ‘Next: Configure details’.
Step 5: Provide a name and other details as per your requirement and click ‘Next: Add Storage’.
Note: Launch configuration is not mutable and once created cannot be changed.
Step 6: Provide storage details and click ‘Next: Configure Security Group’
Step 7: Provide security group details and click ‘Review’
Step 8: Review Launch Configuration details and click ‘Create launch configuration’
Step 9: Provide Key Pair details and click ‘Create launch configuration’
Launch configuration has been successfully created. To view the Launch Configuration, click ‘View your launch configuration’
Hope you have enjoyed this blog post. In the next blog, we are going to discuss Auto Scaling Groups.