crossposting for viz: <https://pulumi-community.s...
# package-authoring
k
b
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
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
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
i think i figured out how to do it the schema has a block for "provider" where this can be defined