Closed ss098 closed 2 years ago
I have the same error after updating the AWS plugin to 0.13.0.
resource "aws_route" "mgmt_internet" {
destination_cidr_block = local.full_cidr
transit_gateway_id = data.aws_ec2_transit_gateway.mgmt_tg.id
route_table_id = data.aws_route_table.mgmt_internet_rt.id
}
Is it possible to not try to evaluate the expression or do we need to ignore the rule is this case?
According to the error message, this seems to be an issue with the gateway_id
field in the resource.
This issue will be fixed by https://github.com/terraform-linters/tflint-ruleset-aws/pull/320
This is fixed in v0.13.1 https://github.com/terraform-linters/tflint-ruleset-aws/releases/tag/v0.13.1
When I upgraded TFLint to
0.35.0
and ruleset0.13.0
, I got the error.This code works fine on tflint 0.34.1 and ruleset 0.12.0.
Code
Version