pulumi / pulumi-terraform-bridge

A library allowing Terraform providers to be bridged into Pulumi.
Apache License 2.0
199 stars 43 forks source link

Generate Any TF Provider schemas with full examples #2607

Open iwahbe opened 1 week ago

iwahbe commented 1 week ago

Hello!

Issue details

Currently, schemas generated from pulumi-terraform-provider are not aware of their upstream git repo, and use only in-memory docs. When generating docs for the registry, we should run the full documentation pipeline used when generating docs for our other providers. We can do this by setting a flag on our get-schema call:

$ pulumi package get-schema terraform-provider $PROVIDER_NAME --docs=full --upstream-repo=$UPSTREAM_REPO

The provider would need to download $UPSTREAM_REPO's docs or website folder and then point docs generation at it.

Affected area/feature