Closed pfilourenco closed 1 year ago
Isn't the value of var.egress_only_gateway
null? In Terraform, if null is given, the attribute will be treated as unspecified:
https://www.terraform.io/docs/language/expressions/types.html#null
Isn't the value of
var.egress_only_gateway
null? In Terraform, if null is given, the attribute will be treated as unspecified: https://www.terraform.io/docs/language/expressions/types.html#null
Ok maybe that's it, I have the default value of null, as you can see I have a check if it's null to not create the resource.
Unfortunately, this rule doesn't consider the count
attribute, so even if count = 0
, it's supposed to create a resource, and checks if the progress_only_gateway_id
is set. This behavior seems to be a bug.
This rule currently respects the count
and for_each
meta-arguments, so this bug should not occur. Closing.
Hi,
I have an egress_only_gateway_id and it says that I don't have: "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)"
code: