Terraform

Terraform

Made by DeepSource

Missing routing target in aws_route resource TF-L0030

Bug risk
Major

The routing target is not specified for the aws_route resource. Each aws_route must contain either of these: - egress_only_gateway_id - gateway_id - instance_id - nat_gateway_id - network_interface_id - transit_gateway_id - vpc_peering_connection_id - vpc_endpoint_id

Example

# route target is not specified
resource "aws_route" "foo" {
    route_table_id = "rtb-1234abcd"
}`