infra/infra/route-table.tf
shockrah 92a450927d - Removing tons of complexity and removing cost overall
! Down to just 2 public servers for now because why tf now servers
2021-12-03 21:25:51 -08:00

17 lines
484 B
HCL

# NOTE: local traffic route is implied and does not need to be specified
resource "aws_route_table" "crete_route_table" {
vpc_id = aws_vpc.athens_vpc.id
route {
cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.athens_internet_gateway.id
}
tags = {
Name = "Crete IGW Route Table"
}
}
resource "aws_route_table_association" "crete_gateway_association" {
subnet_id = aws_subnet.crete_subnet.id
route_table_id = aws_route_table.crete_route_table.id
}