Hi! Does Pulumi Package supports generating SDK in...
# getting-started
s
Hi! Does Pulumi Package supports generating SDK in JAVA? Is there somewhere example for c# source code? (I want to write pulumi packaged components in c# and generate SDK for JAVA))
t
If I understand what you're asking correctly, then I think what you're asking about is making Pulumi components
So you can implement a provider in your language of choice and it runs as its own process. Currently if I recall correctly java sdk is in beta and you can generate it. Are you talking about making a provider?
A provider or a component*
s
I am talking about this: https://www.pulumi.com/docs/using-pulumi/pulumi-packages/ Third type: Component Package
And wonder it is possible to write one stack in c# and share it with other languages to inherit from it (i want this way provide some basic transformations for each stack)
t
"Pulumi Packages are the core technology that enables cloud infrastructure resource provisioning to be defined once, and made available to users in all Pulumi languages." Yeah
s
Are there some examples for c#?
t
The go one has a helper, but you can implement it without the helper
You basically need to implement a grpc interface
There isn't a template yet
Yeah looking further I can only find the provider Library for go so it's easiest to do a provider implemtation in go.
You can, however, probably implement https://github.com/pulumi/pulumi/blob/master/proto/pulumi/provider.proto This grpc interface with a dotnet program and add it to pulumi registry?
You'd need to use that proto to generate the dotnet code using the grpc command line tool, implement that interface, and then stand up a GRPC server.
All of this this is taken care of by the pulumi-go-provider library for you