Skip to content

Commit

Permalink
Remove duplicate public route table resource in vpc module
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jan 28, 2025
1 parent 675ae91 commit cf1e576
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions terraform/deployments/vpc/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@ resource "aws_internet_gateway" "public" {
}
}

resource "aws_route_table" "public" {
vpc_id = aws_vpc.vpc.id

route {
cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.public.id
}

tags = {
Name = "govuk-${var.govuk_environment}"
removed {
from = aws_route_table.public
lifecycle {
destroy = false
}
}

Expand Down

0 comments on commit cf1e576

Please sign in to comment.