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

Support JSON variable files (*.tfvars.json) #519

Closed
radeksimko opened this issue May 19, 2021 · 1 comment · Fixed by #697
Closed

Support JSON variable files (*.tfvars.json) #519

radeksimko opened this issue May 19, 2021 · 1 comment · Fixed by #697
Assignees

Comments

@radeksimko
Copy link
Member

radeksimko commented May 19, 2021

Use-cases

When declaring variables in a file, users would usually be editing the "native" HCL version and #50 describes how we can help them edit these files.

Variable files generally can also be useful for the language server to provide a pre-computed value of an expression on hover, as described in #495.

Users would benefit from #495 if all variable values were reflected there, i.e. not just *.tfvars, but also *.tfvars.json which would often be generated.

Users would also benefit from an early detection of duplicate variable names across all auto-loaded variable files, i.e.

  • terraform.tfvars
  • *.auto.tfvars
  • terraform.tfvars.json
  • *.auto.tfvars.json

Proposal

@github-actions
Copy link

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 Dec 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants