https://pulumi.com logo
#general
Title
# general
t

tall-monitor-77779

09/26/2018, 8:44 AM
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

white-balloon-205

09/28/2018, 7:42 PM
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

tall-monitor-77779

09/28/2018, 7:49 PM
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

white-balloon-205

09/28/2018, 7:54 PM
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

tall-monitor-77779

09/28/2018, 8:00 PM
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)