Closed tgolsson closed 2 years ago
This seems to be a bug in WalkResourceBlocks
. When transferring blocks between plugins, it is necessary to extract the target block (audit_log_config
in this case) from the Terraform configuration, but there is a problem with this range extraction in JSON syntax.
https://github.com/terraform-linters/tflint/blob/v0.33.1/tflint/terraform.go#L107-L108
I'm working on a redesign of the plugin API to resolve this problem. Once this is done, this kind of problem will be resolved. https://github.com/terraform-linters/tflint-plugin-sdk/issues/89
As a workaround, I think it can be avoided by using the WalkResources
API instead.
Thank you @wata727!
Hello!
I'm running into an issue with linting our audit resources, and as far as I can tell our setup is correct, and the JSON is valid. Running tflint on the following data:
Generates the following error:
This seems like a parsing error in this library, but I've not been able to locate why/where so far. Any thoughts?