Skip to content

Commit

Permalink
Merge pull request #166 from kbst/eksvpcroutetables
Browse files Browse the repository at this point in the history
EKS: Make VPC routing table routes non authoritative
  • Loading branch information
pst authored Mar 29, 2021
2 parents 1deaa0d + 680312b commit 979d3bf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions aws/_modules/eks/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ resource "aws_internet_gateway" "current" {

resource "aws_route_table" "current" {
vpc_id = aws_vpc.current.id
}

resource "aws_route" "current" {
route_table_id = aws_route_table.current.id

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

resource "aws_route_table_association" "current" {
Expand All @@ -36,4 +38,3 @@ resource "aws_route_table_association" "current" {
subnet_id = aws_subnet.current[count.index].id
route_table_id = aws_route_table.current.id
}

0 comments on commit 979d3bf

Please sign in to comment.