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

Consider Exposing Framework Provider Metadata #1022

Open
SBGoods opened this issue Jul 29, 2024 · 2 comments
Open

Consider Exposing Framework Provider Metadata #1022

SBGoods opened this issue Jul 29, 2024 · 2 comments
Labels
enhancement New feature or request non-protocol-info Issues and PRs about surfacing information that Terraform doesn't need, but other clients do.

Comments

@SBGoods
Copy link
Contributor

SBGoods commented Jul 29, 2024

Background

The terraform providers schema -json command allows Terraform to output provider-based information in machine-readable JSON format. Terraform ecosystem tooling such as terraform-plugin-docs and the Terraform Language Server, rely on this specification to operate. The command currently only exposes information surfaced from the Terraform Plugin Protocol's GetProviderSchema RPC and therefore has a tight dependency on Terraform core.

Since the provider schema information and other metadata are sourced from the providers themselves with no dependency on Terraform core, we can consider exposing a provider metadata function or RPC directly in the framework which provider developers can use to opt-in to outputting/exposing additional provider metadata.

Use-cases

terraform-plugin-docs:

@SBGoods SBGoods added enhancement New feature or request non-protocol-info Issues and PRs about surfacing information that Terraform doesn't need, but other clients do. labels Jul 29, 2024
@SBGoods
Copy link
Contributor Author

SBGoods commented Jul 29, 2024

Another potential use case, exposing metadata about which attributes have a RequiresReplace plan modifier set: https://discuss.hashicorp.com/t/expose-requiresreplace-forcenew-attributes-in-provider-schema/68870

@drewmullen
Copy link

We would also love information on default values and potentially validations:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request non-protocol-info Issues and PRs about surfacing information that Terraform doesn't need, but other clients do.
Projects
None yet
Development

No branches or pull requests

2 participants