-
Notifications
You must be signed in to change notification settings - Fork 43
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
Provide a way to dump the TF schema of a bridged provider #1982
Comments
Tabular form (stored in CSV or better parquet) could make it quite easy to ingest and cross-analyze. There's a tiny bit of design here to see how this mapping looks like. |
Should the provider binary be responsible for that or should the binary dump some JSON blob which we can then post-process into whatever form we want? |
I have not thought this through don't have strong opinions. So long as we can query the end result. I've used a small tool before like https://github.com/pulumi/pulumi-trace-tool for processing some Pulumi program outputs as part of the CI->S3 pipe so there's precedent. |
There's MarshallableProviderInfo that has mapping information including, I think, TF schema, but it's worth double checking if it is missing anything interesting for us. You can get it with a flag already:
For quick and dirty, TF schema itself has a gRPC representation (and every gRPC has associated JSON form). That could be used. Decisions to be made how to tabularize this though can indeed affect usability for our query scenarios, but we can draw on Pablo's expertise possibly. |
As @t0yv0, pulumi-gitlab dump: https://gist.github.com/VenelinMartinov/315dd3da23e6975f6dc37c82255c6b76 I don't see anything interesting missing so I'll close this issue and continue the discussion on the other one. |
Taking it back: the provider info does not contain information about property constraints like |
|
Did we land this? Curious. |
No, #2315 is still open |
We do have some dashboards based on the draft though |
Hello!
Issue details
It'd be very useful if a provider binary had a flag to dump the TF schema. This would be invaluable for bug reports against dynamically bridged providers and could also be useful for using the TF schema for analytics purposes.
Affected area/feature
The text was updated successfully, but these errors were encountered: