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

Source provider schemas directly from binaries via gRPC #355

Open
radeksimko opened this issue Jan 5, 2021 · 0 comments
Open

Source provider schemas directly from binaries via gRPC #355

radeksimko opened this issue Jan 5, 2021 · 0 comments
Labels
enhancement New feature or request providers Functionality related to Terraform providers

Comments

@radeksimko
Copy link
Member

radeksimko commented Jan 5, 2021

Current Version

0.11.0

Context

As explained in #354 and probably in some other related issues, we need to expand ways we source provider schemas.

We currently employ two mechanisms:

  • Terraform CLI (terraform providers schema -json)
  • preloading JSON export

which provide some basic coverage.

We plan to also source from the Registry API, but this is dependent on Registry changes: #193

Proposal

Source schema directly from provider binaries via existing gRPC protocol, i.e. effectively call GetSchema method to improve the coverage.

This means we will also need to extract the mechanism for discovering installed plugins in .terraform, which also differs between Terraform versions, so we know where to find the binaries and how to identify them.

If it proves to be reliable enough that it can be treated as equivalent to terraform providers schema -json we could remove the CLI method entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request providers Functionality related to Terraform providers
Projects
None yet
Development

No branches or pull requests

2 participants