Hi, I'm using tflint-ruleset-opa to set an issue when the resource signalfx_detector is missing a notifications attribute inside rule.
The rule works fine when validating my detector, but if I include a main.tf file that loads my defective detector, tflint fails with the error pasted in the output section. I even tried to exclude main.tf with # tflint-ignore-file: all, but it still fails.
Summary
Hi, I'm using
tflint-ruleset-opa
to set an issue when the resourcesignalfx_detector
is missing anotifications
attribute insiderule
.The rule works fine when validating my detector, but if I include a
main.tf
file that loads my defective detector, tflint fails with the error pasted in the output section. I even tried to excludemain.tf
with# tflint-ignore-file: all
, but it still fails.My folder structure is:
main.tf:
detectors/example.tf:
.tflind.d/policies/tags.rego:
Command
TFLINT_OPA_POLICY_DIR="$(pwd)/.tflint.d/policies/" tflint --config "$(pwd)/.tflint.hcl" --recursive
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.50.2
Terraform Version
No response
Operating System