-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform Linter reports error with WAFv2 rule_action_override but matches documentation #1785
Comments
Hi @cwoollard! I'm not able to reproduce the bug with the extension version you mentioned. The extended validation feature uses provider schemas to determine which blocks and attributes are expected in a given context. We have two sources of provider schemas: 1) bundled with the extension 2) obtained from Terraform CLI. Can you please check if you have a local installation of the |
Terraform v1.9.0
I have also tried upgrading to the latest, and that still gives me the issue. terraform version
|
It says 4.35. I guess it is picking up another version from somewhere. Do you know where it might be pulling that from? |
Question. Does anyone know how this plugin works out which provider to use? I suspect it is deciding based on something in a higher directory in the tree. Yet it doesn't seem to be clear exactly how and where it has made that decision. |
Extension Version
v2.30.2
VS Code Version
Version: 1.90.2 (Universal)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
Date: 2024-06-18T22:37:41.291Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Operating System
macOS Sonoma 14.5
Terraform Version
Terraform v1.9.0 on darwin_arm64
Steps to Reproduce
Expected Behavior
The code matches the current documentation. Why is the linter reporting an issue?
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/wafv2_web_acl.html
Actual Behavior
If you run Terraform validate from the command line, there is no issue.
If you apply the code, there is no issue.
Why is the linter reporting this error?
Unexpected block: Blocks of type "rule_action_override" are not expected hereTerraform
No quick fixes available
Terraform Configuration
No response
Project Structure
No response
Gist
No response
Anything Else?
No response
Workarounds
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: