Skip to content

Commit

Permalink
This PR addresses issue hashicorp#183
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AntoineDuComptoirDesPharmacies committed Aug 4, 2020
1 parent ddaed27 commit 06a80df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/consul-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ resource "aws_autoscaling_group" "autoscaling_group" {
var.tags,
]
)

lifecycle {
ignore_changes = [load_balancers, target_group_arns]
}
}

# ---------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 06a80df

Please sign in to comment.