pulumi / pulumi-provider-boilerplate

Boilerplate showing how to create a native Pulumi provider
Apache License 2.0
59 stars 19 forks source link

boilerplate does not have a schema file #62

Open EvanBoyle opened 1 year ago

EvanBoyle commented 1 year ago

The go provider library does not require a schema as all necessary info is expressed via code. However, publishing to the Pulumi registry requires adding an entry with a pointer to the provider's schema.json file:

Not sure how to follow the docs on publishing to registry without a schema file in my provider that was generated from this boilerplate.

EvanBoyle commented 1 year ago

Not sure if there is a better way, but I went ahead and just added a make target that builds the binary, then uses pulumi package get-schema with the newly built provider binary to generate the schema:

https://github.com/pulumi/pulumi-auto-deploy/commit/cbad54cb542ea7d27ebdaa4dfe2e1b749dc44e9d

EvanBoyle commented 1 year ago

Also needed https://github.com/pulumi/pulumi-auto-deploy/commit/da12544279f11f5426fe060c84a6ea46670fa950 to remove the ever-changing version field after the schema is generated.