Launch Template in AutoScaling group is not updated on change #22428
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
service/ec2
Issues and PRs that pertain to the ec2 service.
Community Note
Terraform CLI and Terraform AWS Provider Version
I don't think the terraform version matters here, I have tried with both terraform versions 1.1.2 and 0.13.6.
As per my testing, the problem lies with terraform provider version.
v3.38
works fine while3.69.0
and3.70.0
definitely has issues. I am not sure in which version the bug was introduced.Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Expected Behavior
When there is a change in the launch template, the version of the launch template should be bumped (say 1 to 2) and should update the launch template version mapped to the AutoScaling group too.
Actual Behavior
Somewhere between versions 3.38.0 and 3.69.0, a bug has been introduced which bumps up the version of the launch template but not one mapped to the AutoScaling Group.
Steps to Reproduce
See this example
terraform apply
), the launch template was created with v1 and the autoscaling group was too created with launch template v1terraform apply
) launch template version is bumped from v1 to v2 but it does not gets changed in the ASG.There is a mismatch of the launch template latest version and the version in the ASG.
References
The text was updated successfully, but these errors were encountered: