Change to aws_autoscaling_group removed lifecycle hook #19714
Labels
bug
Addresses a defect in current functionality.
service/autoscaling
Issues and PRs that pertain to the autoscaling service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform 0.13.6
provider.aws 3.34.0
Affected Resource(s)
Expected Behavior
The lifecycle hook was added via the initial_lifecycle_hook argument on the aws_autoscaling_group resource.
When updating the auto scaling group (in this case, by updating the launch template by updating instance type, which results in updating the auto scaling group to reference the newer version of the launch template, I expect the lifecycle hook to remain on the auto scaling group. Subsequent runs do not recreate the lifecycle hook.
What is also odd is I'm not sure how the lifecycle hook got added in the first place via an update operation. I see nothing in the code (
terraform-provider-aws/aws/resource_aws_autoscaling_group.go
Line 984 in bf230a0
Actual Behavior
The lifecycle hook no longer exists in AWS console.
The text was updated successfully, but these errors were encountered: