The following message from AWS has prompted us to migrate from launch configurations to launch templates.
Amazon EC2 Auto Scaling no longer adds support for new EC2 features to launch configurations and will stop supporting new EC2 instances types after December 31, 2022. We recommend that customers using launch configurations migrate to launch templates.
I've adjusted the CloudFormation template to leverage a launch template instead of a launch configuration. Through manual testing, the changes appear to be working as expected. I tested with and without a SpotPrice being specified.
Motivation:
The following message from AWS has prompted us to migrate from launch configurations to launch templates.
Launch template documentation.
Solution:
I've adjusted the CloudFormation template to leverage a launch template instead of a launch configuration. Through manual testing, the changes appear to be working as expected. I tested with and without a
SpotPrice
being specified.