https://pulumi.com logo
c

cuddly-barista-79466

12/05/2018, 8:18 PM
Forgive my lack of understanding the Pulumi Terraform connection, but if I wanted to use the Terraform provider in Pulumi how would that work if there is no pulumi provider/resource for BigIP yet? https://github.com/terraform-providers/terraform-provider-bigip
s

stocky-spoon-28903

12/05/2018, 8:24 PM
@cuddly-barista-79466 It’s a fairly simple job to create a bridged provider
c

cuddly-barista-79466

12/05/2018, 8:30 PM
So my question comes from this repo https://github.com/pulumi/pulumi-terraform which explains the bridge stuff. And forgive my lack of understanding but, how is this used to create a bridge provider? Does this program build it, do i need a new project that uses this repo as the base? Do, i need a new project that calls this tf bridge project? I feel like i am missing some details on getting started with create a new TF Bridge provider
i agree it’s probably easy, and after understanding the process and doing it once over, that it will seem a lot easier
s

stocky-spoon-28903

12/05/2018, 8:33 PM
Here’s a nice small example: https://github.com/pulumi/pulumi-random
A provider is a Go program that depends on pulumi-terraform and on the terraform provider itself, and has a map, like this: https://github.com/pulumi/pulumi-random/blob/master/resources.go#L50-L81
I wonder if there is a way to run the tests without actually owning an F5
c

cuddly-barista-79466

12/05/2018, 8:49 PM
Right. I get the examples. But what is building all the scaffolding for the pulumi provider in the go project? Or how much can I copy from an existing example? Is there pulumi provider bridge generate blank project? This is where i am stuck at, not being a Go developer
s

stocky-spoon-28903

12/05/2018, 8:50 PM
Ah, I see
I guess we should have a boilerplate repo for this stuff actually
cc @white-balloon-205
c

cuddly-barista-79466

12/05/2018, 8:50 PM
Sorry if it’s not apparent to me
s

stocky-spoon-28903

12/05/2018, 8:51 PM
Right now I think it’s pretty much cargo culted from repo to repo, there’s not necessarily a coherant approach that you are missing
We definitely need to make this easier
c

cuddly-barista-79466

12/05/2018, 8:51 PM
Gotcha. I get that
s

stocky-spoon-28903

12/05/2018, 8:51 PM
Is lack of BigIP blocking you?
(i.e. are you doing this out of necessity to proceed or desire to learn, I guess)
c

cuddly-barista-79466

12/05/2018, 8:52 PM
I am trying to make the case to my team that we can use pulumi for On-Prem IAC
w

white-balloon-205

12/05/2018, 8:56 PM
I opened https://github.com/pulumi/pulumi-terraform/issues/293 on the topic of having an easy to use template for creating new Terraform-based providers. Definitely something we can make easier. Many users have been successful starting from something like https://github.com/pulumi/pulumi-random and manually updating to the desired provider. We are also very happy to help with this process either during initial bringup, or in moving the provider into the
pulumi
organization and adding it to our test matrix. (though as @stocky-spoon-28903 notes, not sure what the test approach looks like for BigIP given there is custom hardware required for testing).
c

cuddly-barista-79466

12/05/2018, 8:57 PM
so things we need to put into IAC would involve, vsphere, big-ip, infoblox(Maybe), Active Directory(OUs, DNS, Groups)
RIght testing against a physical F5 would be difficult without one