Disallow routes that have no targets.
resource "aws_route" "foo" {
route_table_id = "rtb-1234abcd"
destination_cidr_block = "10.0.1.0/22"
}
$ tflint
1 issue(s) found:
Error: The routing target is not specified, each aws_route must contain either egress_only_gateway_id, gateway_id, instance_id, nat_gateway_id, network_interface_id, transit_gateway_id, vpc_peering_connection_id or vpc_endpoint_id. (aws_route_not_specified_target)
on template.tf line 1:
1: resource "aws_route" "foo" {
It results in an error.
Add a routing target. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route#argument-reference