-
Notifications
You must be signed in to change notification settings - Fork 487
Module consul-cluster : aws_autoscaling_attachment broken #183
Comments
Solution : On ASG, ignore load_balancers and targetgroup_arns modifications according to recommandations. References : hashicorp/terraform-provider-aws#9513 https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_attachment
Are you seeing an issue if you use both |
Hi @brikis98, In fact
I just use the Here is a "simple" reproducer : If you apply once : ASG > Load Balancing menu will show the LB target groups. Then, you can check the fix by replacing the module source to : github.com/LeComptoirDesPharmacies/terraform-aws-consul//modules/consul-cluster?ref=bugfix%2Fconsul-cluster-asg-attachment Yours faithfully, |
Understood, thanks! |
Hi,
Since terraform AWS provider 2.21.0, it seems that we can no more use safely aws_autoscaling_attachment as described in your consul-cluster README. (See issue : hashicorp/terraform-provider-aws#9513)
Indeed, if we use aws_autoscaling_attachment to attach target groups to ASG created by consul-cluster, next apply on consul cluster remove the target groups of load balancer.
Documentation (https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_attachment) recommends that you put ignore_changes on aws_autoscaling_group ressources :
Do you agree with this ? Do you have any workaround ?
Thanks in advance for your answer.
Yours faithfully,
LCDP
The text was updated successfully, but these errors were encountered: