Skip to content

Commit

Permalink
Merge pull request #1215 from cloud-gov/fix-tagging
Browse files Browse the repository at this point in the history
Fix tagging collision for VPC network peering resources
  • Loading branch information
markdboyd authored Mar 17, 2023
2 parents ad03dce + 157be53 commit 11e611a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions terraform/modules/vpc_peering/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ resource "aws_vpc_peering_connection" "peering" {
auto_accept = false
vpc_id = var.source_vpc_id

lifecycle {
ignore_changes = [tags_all]
}

tags = {
Name = "${var.source_vpc_id} to ${var.target_vpc_id}"
}
Expand All @@ -40,11 +36,7 @@ resource "aws_vpc_peering_connection_accepter" "peer" {
auto_accept = true

lifecycle {
ignore_changes = [tags_all]
}

tags = {
Name = "${var.source_vpc_id} to ${var.target_vpc_id}"
ignore_changes = [tags, tags_all]
}
}

Expand Down

0 comments on commit 11e611a

Please sign in to comment.