terraform-aws-autoscaling icon indicating copy to clipboard operation
terraform-aws-autoscaling copied to clipboard

Initial lifecycle hooks not updated

Open rr-krupesh-savaliya opened this issue 3 years ago β€’ 0 comments

Description

Once the lifecycle hook is created, if you change the default_result or heartbeat_timeout then it will not be reflected on ASG, only the state file updated.

Versions

  • Module version: 6.5.2
  • Terraform version: 1.2.8
  • Provider versions: AWS - 4.31.0

Code

initial_lifecycle_hooks = [
    {
      name                  = "ScaleINLifeCycleHook"
      default_result        = "CONTINUE"
      heartbeat_timeout     = "180"
      lifecycle_transition  = "autoscaling:EC2_INSTANCE_LAUNCHING"
    }
  ]

Steps to reproduce the behavior:

  • Change the value of default_result or heartbeat_timeout and apply

Expected behavior

  • Actually, update the lifecycle hook and the state file

Actual behavior

  • Nothing changed in ASG on AWS, only the state file updated

Thanks

rr-krupesh-savaliya avatar Sep 26 '22 17:09 rr-krupesh-savaliya