Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Add comment concerning the lifecycle changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-womeldorf committed Aug 31, 2020
1 parent a99a9f4 commit 1c88967
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/consul-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ resource "aws_autoscaling_group" "autoscaling_group" {
)

lifecycle {
# As of AWS Provider 3.x, inline load_balancers and target_group_arns
# in an aws_autoscaling_group take precedence over attachment resources.
# Since the consul-cluster module does not define any Load Balancers,
# it's safe to assume that we will always want to favor an attachment
# over these inline properties.
#
# For further discussion and links to relevant documentation, see
# https://github.com/hashicorp/terraform-aws-vault/issues/210
ignore_changes = [load_balancers, target_group_arns]
}
}
Expand Down

0 comments on commit 1c88967

Please sign in to comment.