Getting Invalid reference error when using module to load a terraform file with lint error #84
Replies: 1 comment
-
Prematurely converted this from issue to discussion, it belongs here until it can be reproduced outside this plugin. But a panic is indicative of a bug somewhere. Closing this discussion in favor of continuing in the issue (#85). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions