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

Commit

Permalink
Ignore changes to target group arns in nomad-cluster ASG
Browse files Browse the repository at this point in the history
  • Loading branch information
so-development committed Sep 9, 2020
1 parent 7a6bd76 commit 90a430d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/nomad-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ resource "aws_autoscaling_group" "autoscaling_group" {
propagate_at_launch = tag.value["propagate_at_launch"]
}
}

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 90a430d

Please sign in to comment.