pulumi / pulumi-tf-provider-boilerplate

Boilerplate code for Terraform provider-backed Pulumi packages
Apache License 2.0
75 stars 42 forks source link

Replace Template Repository with Cookiecutter Template #86

Open tmeckel opened 2 years ago

tmeckel commented 2 years ago

Hello!

Issue details

After watching @rawkode and @stack72 video on creating a Pulumi provider using TF Bridge, and also based on my own experience creating two such providers (pulumi-azuredevops and pulumi-time) from the pulumi-tf-provider-boilerplate and how many pitfalls and manual rework is required, I created a Cookiecutter template to create such a provider.

Just by specifying some configuration settings it is possible to create a first version of the Pulumi provider very quickly, even including the necessary GitHub workflows and a SHIM class if the Terraform provider is hidden in a Go internal package.

The Cookiecutter template has still some raw edges, especially no documentation right now :grin: but I tested it successfully in creating Pulumi Providers out of Terraform AzureDevOps und Terraform Time.

https://github.com/tmeckel/pulumi-tf-provider-cookiecutter

So perhaps this boilerplate repository could be replaced by the Cookiecutter template.

stack72 commented 2 years ago

Hey @tmeckel

Thank you for opening the issue here - you are a great member of the Pulumi community as you are constantly trying to make things better. I will respond with more details to this soon when we make a few more public details of things that are going on right now :)

Paul

tmeckel commented 2 years ago

@stack72 any update how to proceed here?