Files
floci/src/main/java/io/github
thejrose1984andPriamo Germosen 0971cf6f64 fix(cloudformation): resolve ASG launch templates by id and MixedInstancesPolicy (#2005) (#2019)
An AWS::AutoScaling::AutoScalingGroup that pointed at its launch template
any way other than by LaunchTemplateName failed with "The specified
launch template does not exist."

provisionAutoScalingGroup collapsed LaunchTemplateId into the launch
template name argument, and Auto Scaling matches names exactly, so a
valid lt- id — including one that a Ref to an in-stack
AWS::EC2::LaunchTemplate resolves to — never matched. The id and name are
now passed to createAutoScalingGroup separately.

MixedInstancesPolicy was never read from template properties, so a
mixed-instances group reached Auto Scaling with no launch source and
failed validation. It is now built in the same shape the Query API parser
produces, including Overrides[].InstanceType and InstancesDistribution; a
non-integer distribution value fails the stack rather than being silently
dropped.

CloudFormationAsgLaunchTemplateIntegrationTest covers resolution by name,
by id, through a Ref to an in-stack launch template, and through
MixedInstancesPolicy.

Closes #2005

Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-08-14 16:17:47 -04:00
..