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

Introduce module.terraform command to expose details about Terraform installation #995

Closed
1 task
Tracked by #697
radeksimko opened this issue Jul 7, 2022 · 2 comments · Fixed by #1016
Closed
1 task
Tracked by #697
Labels
enhancement New feature or request

Comments

@radeksimko
Copy link
Member

Background

We already obtain both Terraform constraint (required_version) and Terraform version via terraform version -json to be able to pick the right core schema and provide accurate IntelliSense relevant to the configuration/version.

As described in hashicorp/vscode-terraform#697 clients would benefit from having these details available too.

Proposal

  • Introduce new custom command module.terraform to output the following response for any module URI provided as argument, similar to how existing commands module.calls or module.providers work
{
  "v": 0,
  "required_version": "~> 1.0",
  "discovered_version": "1.0.1",
  "discovered_path": "/opt/homebrew/bin/terraform"
}
@radeksimko
Copy link
Member Author

(Most of) this was implemented as part of #1016

We can iterate on it in the future, e.g. by adding the discovered path.

@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 Feb 23, 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

Successfully merging a pull request may close this issue.

1 participant