-
Notifications
You must be signed in to change notification settings - Fork 131
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
Provide diagnostics in tfvars
files
#1410
Comments
This was implemented as part of #1413 and the "nice to haves" can be followed in individual issues as linked above. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Problem Statement
With the current early validation implementation, we validate and publish diagnostics for all
*.tf
files inside a module. We can extend some of the validation rules to*.tfvars
files.Part of hashicorp/vscode-terraform#720
Proposal
*.tfvars
filesvariable
block)*.json
files #705tfvars
) #715.*.tf
files & non-autoloaded*.tfvars
#970Implementation Notes
Of all existing validators we'll probably only need two:
validator.MissingRequiredAttribute{},
may look relevant but we have to keep in mind that variable values can be supplied from other places such as CLI flags, not only tfvars files, therefore we cannot expect all required variables to be declared in*.tfvars
files.Community Note
The text was updated successfully, but these errors were encountered: