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

Commit

Permalink
Merge pull request #78 from so-development/master
Browse files Browse the repository at this point in the history
Ignore changes to target group arns in nomad-cluster ASG
  • Loading branch information
brikis98 authored Sep 10, 2020
2 parents 7a6bd76 + 90a430d commit bc1bcc4
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 bc1bcc4

Please sign in to comment.