Report & correct duplicate variable definitions across auto-loaded tfvars files #702
Labels
diagnostics
enhancement
New feature or request
textDocument/codeAction
textDocument/publishDiagnostics
Use-cases
Users with more complex modules and many variables may not always notice duplicate entries across multiple autoloaded variable files.
For example, say we have the following variable files with variable definitions:
alpha.auto.tfvars
-one
,two
beta.auto.tfvars
-three
gama.auto.tfvars
-one
,four
User may not notice the
one
being declared twice inalpha.auto.tfvars
andgama.auto.tfvars
until they runterraform validate
orplan
or similar command.Attempted Solutions
Manual inspection, or
terraform validate
.Proposal
*.tfvars
and*.tfvars.json
files) as diagnosticsThe text was updated successfully, but these errors were encountered: