Many of the overriding issues in TFLint have been fixed in https://github.com/terraform-linters/tflint/pull/2124, but there are still issues with overriding meta arguments. In Terraform, meta arguments are overridden and then resources are expanded, but in TFLint, they are overridden after expansion, so if the original and override meta arguments are different, the override expansion cannot be followed.
1 issue(s) found:
Error: "t2.invalid" is an invalid value as instance_type (aws_instance_invalid_type)
on main_override.tf line 4:
4: instance_type = "t${count.index + 1}.invalid"
Issues should be reported for two resources, but only one is reported.
Summary
See also https://github.com/terraform-linters/tflint/issues/2114
Many of the overriding issues in TFLint have been fixed in https://github.com/terraform-linters/tflint/pull/2124, but there are still issues with overriding meta arguments. In Terraform, meta arguments are overridden and then resources are expanded, but in TFLint, they are overridden after expansion, so if the original and override meta arguments are different, the override expansion cannot be followed.
Command
tflint
Terraform Configuration
TFLint Configuration
Output
Issues should be reported for two resources, but only one is reported.
TFLint Version
0.53.0
Terraform Version
1.9.8
Operating System