Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tagging collision for VPC network peering resources #1215

Merged
merged 13 commits into from
Mar 17, 2023
8 changes: 0 additions & 8 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 @@ -39,10 +35,6 @@ resource "aws_vpc_peering_connection_accepter" "peer" {
vpc_peering_connection_id = aws_vpc_peering_connection.peering.id
auto_accept = true

lifecycle {
ignore_changes = [tags_all]
}

tags = {
Name = "${var.source_vpc_id} to ${var.target_vpc_id}"
}
Expand Down
10 changes: 0 additions & 10 deletions terraform/stacks/main/stack.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ provider "aws" {
lambda = "https://lambda-fips.${var.aws_default_region}.amazonaws.com"
wafv2 = "https://wafv2-fips.${var.aws_default_region}.amazonaws.com"
}
default_tags {
tags = {
deployment = "bosh-tooling"
}
}
}
provider "aws" {
# this is for the tooling bosh
Expand All @@ -39,11 +34,6 @@ provider "aws" {
lambda = "https://lambda-fips.${var.aws_default_region}.amazonaws.com"
wafv2 = "https://wafv2-fips.${var.aws_default_region}.amazonaws.com"
}
default_tags {
tags = {
deployment = "bosh-parent"
}
}
}
provider "aws" {
region = var.aws_default_region
Expand Down