https://pulumi.com logo
#package-authoring
Title
# package-authoring
k

kind-jelly-61624

12/05/2023, 9:24 PM
b

big-architect-71258

12/06/2023, 8:48 AM
It depends on the provider you're referring to. For a native provider the
pulumi
command is used to creates the a language SDK like the following
pulumi package gen-sdk --language python
. For a wrapped provider
tfgen
creates the language SDKs. Both tools use the
schema.json
file to create the language bindings for resources and functions (data sources) from the provider. The code to create code for languages itself is located in the
codegen
package in the
pulumi
repository: https://github.com/pulumi/pulumi/tree/master/pkg/codegen
k

kind-jelly-61624

12/06/2023, 4:44 PM
I mean more - once you run the generate the sdk (using the gen-sdk command) - the sdk creates a
pulumi.ProviderResource
. This would be what users of my sdk would instantiate as a Provider to pass into ResourceOptions or InvokeOptions. I was wondering if there was a way to extend that
b

big-architect-71258

12/06/2023, 4:46 PM
There are no extension points the
codegen
package mentioned above. But someone from Pulumi e.g. @billowy-army-68599 or @echoing-dinner-19531 might correct me here.
k

kind-jelly-61624

12/06/2023, 5:14 PM
i think i figured out how to do it the schema has a block for "provider" where this can be defined