Hi guys, if I was to create a new provider to supp...
# general
t
Hi guys, if I was to create a new provider to support a new serverless framework (such as fission) does this need to be created in go? or can that be js/ts also? I can't find any docs. I've looked at
pulumi-openfaas
w
Sorry for delay! You can implement providers in any language that can speak gRPC, but we only currently have examples of that in Go. However, there is also a Dynamic Provider capability to author providers inside the JavaScript of a Pulumi program. There’s some discussion of this latter approach for talking to GitHub here: https://blog.pulumi.com/managing-github-webhooks-with-pulumi
t
ok thanks Luke, I'd probably want to create a provider 'the right way' and would happily use gRPC
I can do a little bit of go but not as fluent as in other languages
but at the same time, I'm keen to create a serious plugin for fission
w
Taking something structurally similar to the Pulumi-openfaas project, but replacing Go with something else that can produce a stand-alone binary to serve gRPC, should work fine. There’s going to be a bit of boilerplate that you’ll need to port over for this - but nothing intractable.
Curious - which language are you expecting to use?
t
javascript ideally, but could be .net core or python
or java but I guess thats last on the list
if go is the right choice then I'll have a hack away at it
(I'm fluent in typescript also)