After applying the stack and detecting drift, the drift reports that the override launch template (here referencing NodeLaunchTemplateArm64) is spurious and should be removed.
Expected Behavior
The auto scaling group, using mixed instance policy that involved overriding the launch template, should pass drift detection after being applied.
Observed Behavior
The launch template within the overrides of the mixed instance policy are not observed by drift detection in the stack template, causing it to report drift when it sees them in the live resources.
Test Cases
Apply a AWS::AutoScaling::AutoScalingGroup similar to the one above, which includes overridden launch templates (for example to change AMI and cater to different processor architectures.) Then trigger drift detection.
Name of the resource
AWS::AutoScaling::AutoScalingGroup
Resource Name
No response
Issue Description
Mixed instance policies that use launch template specifications in overrides, such as to use a different AMI in the override, trigger false drifts.
The
LaunchTemplateSpecification
in the override is absent from the drift's detected "Actual".Consider this gently abridged example:
After applying the stack and detecting drift, the drift reports that the override launch template (here referencing
NodeLaunchTemplateArm64
) is spurious and should be removed.Expected Behavior
The auto scaling group, using mixed instance policy that involved overriding the launch template, should pass drift detection after being applied.
Observed Behavior
The launch template within the overrides of the mixed instance policy are not observed by drift detection in the stack template, causing it to report drift when it sees them in the live resources.
Test Cases
Apply a
AWS::AutoScaling::AutoScalingGroup
similar to the one above, which includes overridden launch templates (for example to change AMI and cater to different processor architectures.) Then trigger drift detection.Other Details
No response