Skip to content
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

Closed
dbanck opened this issue Sep 18, 2023 · 2 comments
Closed

Provide diagnostics in tfvars files #1410

dbanck opened this issue Sep 18, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@dbanck
Copy link
Member

dbanck commented Sep 18, 2023

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

Implementation Notes

Of all existing validators we'll probably only need two:

validator.UnexpectedAttribute{},
validator.UnexpectedBlock{},

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

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@dbanck dbanck transferred this issue from hashicorp/vscode-terraform Sep 18, 2023
@dbanck dbanck added the enhancement New feature or request label Sep 18, 2023
@radeksimko radeksimko self-assigned this Sep 18, 2023
@radeksimko
Copy link
Member

This was implemented as part of #1413 and the "nice to haves" can be followed in individual issues as linked above.

Copy link

github-actions bot commented Nov 3, 2023

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants