- Newest
- Most votes
- Most comments
The error you're encountering is due to AWS phasing out launch configurations in favor of launch templates. Starting October 1, 2024, Amazon EC2 Auto Scaling no longer supports the creation of launch configurations for new AWS accounts.
To resolve this issue, you'll need to update your CloudFormation template to use launch templates instead of launch configurations for your Auto Scaling groups. Here are the steps to fix this:
-
Modify your CloudFormation template to replace the
AWS::AutoScaling::LaunchConfigurationresource with anAWS::EC2::LaunchTemplateresource. -
Update your Auto Scaling group configuration to reference the launch template instead of the launch configuration.
-
When configuring your launch template, ensure you're setting appropriate parameters such as:
- Instance type
- AMI ID
- Security groups
- Key pair
- Block device mappings
If you're using Elastic Beanstalk (which might be using CloudFormation under the hood), you can trigger the use of launch templates by setting at least one of these options:
- DisableIMDSv1
- RootVolumeType (setting this to "gp3" has worked for many users)
- BlockDeviceMappings
- EnableSpot
This change is part of AWS's effort to transition customers to launch templates, which offer more features and flexibility compared to the older launch configurations.
Sources
aws-cli: eb init & eb create --elb-type application stopped working after I created new AWS account | AWS re:Post
Creating an Elastic Beanstalk without success | AWS re:Post
Relevant content
asked 10 months ago
