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

bright-orange-69401

01/09/2020, 1:29 PM
How should I got about making my own Pulumi provider from an existing Terraform provider ? I've taken a look at the pulumi bridge repository: https://github.com/pulumi/pulumi-tf-provider-boilerplate/ A lot of stuff seems hard-coded for internal pulumi purposes... I'd like to make a
pulumi-snowflake
provider, can someone give me some guidance here ? 🙂
b

broad-dog-22463

01/09/2020, 1:32 PM
Hey What do you mean hard coded? Everything in there is what allows the language generation to happen for the provider :) P.
🙂 1
b

bright-orange-69401

01/09/2020, 10:15 PM
For example in the Makefile: https://github.com/pulumi/pulumi-tf-provider-boilerplate/blob/master/Makefile#L6 There are 6 references to
<http://github.com/pulumi/pulumi-|github.com/pulumi/pulumi->
when you CTRL+F the file, so there's a big assumption that the provider is meant to be hosted in your Github Organization. I'm not sure what else might be hard-coded around this https://github.com/pulumi/pulumi-tf-provider-boilerplate/blob/master/resources.go#L25 Here it is assumed that the Terraform provider is officially backed by Hashicorp which is not my case : it's a community provider Maybe these are just aesthetic issues but I'm not very big on Go language so it was enough to stop me for now 😁
@broad-dog-22463 are there any other assumptions in the pulumi-tf-provider-boilerplate other than the ones I already mentioned ? Should I just go ahead and replace those with the location of my actual Github repository and the location of the Terraform provider I want to use ?
b

broad-dog-22463

01/14/2020, 8:08 AM
If you look at Pulumi-Kafka you will see a TF provider that’s on a custom org
It has changed in common/build.mk as well as in resources.go
b

bright-orange-69401

01/14/2020, 9:45 AM
Thanks Paul Well holy molly it looks like it's completely out of my range to make my own bridge from Terraform to Pulumi for now ! I'll keep watch over the repo though : as soon as it's easier to use for Go-noobs like me then I have a ton of providers to integrate & a network a freelancers that can help me through it I just don't believe I can delegate this kind of task to freelancers for now, seeing as I'm not sure how to do it myself
b

broad-dog-22463

01/14/2020, 2:51 PM
What provider are you trying to convert @bright-orange-69401 ?
b

bright-orange-69401

01/14/2020, 2:58 PM
@broad-dog-22463 I'm trying to convert Snowflake Terraform Provider https://github.com/chanzuckerberg/terraform-provider-snowflake But I'm thinking I might do it with a Dynamic Provider if it's too complicated
b

broad-dog-22463

01/14/2020, 2:59 PM
I’m looking now - one second
So this isn’t that tough - we’ve just made it seem like it’s not possible - can I put together a doc and send it to you?
I think you’ve be able to do this pretty easily if I gave you the correct info
Alternatively, we can sit on a zoom call on Thursday and do this together - you drive, I’ll help
I can’t tomorrow as I’m teaching a Pulumi class
b

bright-orange-69401

01/15/2020, 8:58 AM
Is there such a thing as a Pulumi class now ? Wow 🤔 That's epic 😁 I'd be happy for a document because I can also forward it to my freelancers so that they can better apprehend the subject ! I think a Zoom call would be nice as well, if you can fit that into your schedule : if I have firsthand experience I can better delegate it later on 🙂 Thursday won't do for me though. I'll PM you to find a time slot next week !