You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
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.
to prevent unintended resource updates, the aws_autoscaling_group resource must be configured to ignore changes to the load_balancers and target_group_arns arguments within a lifecycle configuration block.
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:
Are you seeing an issue if you use bothtarget_groups param on aws_autoscaling_groupand the aws_autoscaling_attachment resource? Or you get an issue if you use just one of them? Could you share the code and issue you're seeing?
If you apply once : ASG > Load Balancing menu will show the LB target groups.
If you apply twice : ASG > Load balancing menu show nothing
If you apply thrice : ASG > Load Balancing menu will show the LB target groups.
etc...
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
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: