Starting on October 1, 2024, new AWS users will no longer be able to create launch configurations using the console, API, or CloudFormation due to the end of life for Auto Scaling launch configurations. All users are encouraged to migrate to launch templates. This article explains the key differences between launch configurations and launch templates, highlights the benefits of using launch templates, and provides a step-by-step guide on how to perform the migration.
Auto Scaling Launch Configuration
An Auto Scaling Launch Configuration is a legacy Amazon EC2 feature that serves as an instance configuration template. A launch configuration specifies information for the instances such as the ID of the Amazon Machine Image (AMI), the instance type, a key pair, one or more security groups, and a block device mapping. It’s important to note that once a launch configuration is created, it cannot be modified. Moreover, Auto Scaling launch configurations lack versioning, making it impossible to maintain different versions for different purposes.
What is a Launch Template?
A Launch Template refers to an Amazon EC2 feature that specifies instance configuration information, similar to a Launch Configuration. It also specifies the ID of the AMI, the instance type, a key pair, security groups, and other parameters used to launch EC2 instances. However, unlike Launch Configurations, Launch Templates allow for multiple versions.
Auto Scaling Features
AWS recommends using Launch Templates over Launch Configurations. Using Launch Templates offers numerous Amazon EC2 Auto Scaling features, which are not available when using Launch Configurations, such as:
- Systems Manager parameters (AMI ID),
- the current generation of EBS Provisioned IOPS volumes (io2),
- EBS volume tagging,
- T2 Unlimited instances,
- Capacity Reservations,
- Capacity Blocks,
- Dedicated Hosts, among others.
Launch Templates Permissions
Before migrating to Launch Templates, it is necessary to check permissions to work with them. The IAM permissions required for working with Amazon EC2 Launch Templates include:
- ec2:CreateLaunchTemplate (it is recommended to use tags to control access to the launch templates)
- ec2:DescribeLaunchTemplates
- ec2:DescribeLaunchTemplateVersions
- ec2:DeleteLaunchTemplate (Use caution when giving principals permission to delete a resource)
- Control versioning permissions
- Control access to tags on launch templates
Quick Guide to a Launch Template
The first step is to identify Auto Scaling groups that use launch configurations. To do so, run the following command using AWS CLI. Replace REGION with the AWS Region used.
aws autoscaling describe-auto-scaling-groups –region REGION –query ‘AutoScalingGroups[?LaunchConfigurationName!=`null`]’
Setting Names
The next step is to copy a Launch Configuration to a Launch Template. If multiple Launch Configurations are copied, it results in identically named launch templates. Copying them one by one allows changing the name given to a Launch Template. It’s important to note that the copying feature is available only from the console.
Starting Launch Template
Once this is done, the Auto Scaling group can be updated to use a Launch Template. This can be done using AWS CLI with the command below. Replace my-asg with the appropriate Auto Scaling group name.
aws autoscaling update-auto-scaling-group –auto-scaling-group-name my-asg \–launch-template LaunchTemplateName=my-template-for-auto-scaling,Version=’1′
Replacing Instances
The last step is to replace the instances. The existing instances are not affected; only new instances will use the new Launch Template. To update the existing instances, use instance refresh to replace the instances in the Auto Scaling group.
Conclusion
The end of life for the legacy Auto Scaling launch configuration marks a crucial turning point for AWS infrastructure management. Moving to Launch Templates ensures your Auto Scaling setup remains scalable, secure, and fully compatible with modern AWS environments.
Streamlining your Auto Scaling launch workflow not only ensures compliance with AWS updates but also gives you access to superior version control, granular IAM permissions, and enhanced instance flexibility. While migrating an Auto Scaling launch configuration is relatively straightforward, executing it safely in active production environments requires care and precision. Don’t wait until the deadline restricts your cloud management capabilities.
If you struggle with migrating your Launch Configuration to a Launch Template, feel free to contact us.
Key Takeaways
Approaching Deadline: Starting October 1, 2024, AWS users will no longer be able to create a new Auto Scaling launch configuration. Transitioning to Launch Templates is strongly recommended.
Version Control: Unlike a traditional Auto Scaling launch configuration, Launch Templates support built-in versioning, allowing you to easily maintain, update, and manage multiple configuration states.
Access to Modern AWS Features: Upgrading your Auto Scaling infrastructure unlocks advanced EC2 features, including Systems Manager parameters, io2 EBS volumes, Capacity Blocks, and EBS tagging.
Straightforward Migration: The Auto Scaling launch migration process involves identifying legacy groups, copying configurations via the AWS Console, and updating settings using the AWS CLI.
Instance Refresh Required: Updating your Auto Scaling settings does not automatically replace active instances. You must perform an instance refresh to roll out the new Launch Template seamlessly.







