When you create a was network firewall it creates the endpoints in the subnet by default. How do I map firewall endpoint in a route table?
resource “aws_route_table” “tgwRT1” { # Creating RT for tgw Subnet
vpc_id = aws_vpc.vpc_main.id
route {
cidr_block = “0.0.0.0/0” # Large cidr range
vpc_endpoint_id = endpoint_id
}
tags = {
Name = "euw1-firewalltgw-subnet-rt"
}
}