Home

Awesome

Terraform Bridge Provider Boilerplate

This repository contains boilerplate code for building a new Pulumi provider which wraps an existing Terraform provider, if the existing provider uses Go Modules.

Modify this README to describe:

Creating a Pulumi Terraform Bridge Provider

Note: Go 1.12 is needed to build Pulumi providers using Go Modules. Currently, we recommend pinning the version in .travis.yml to 1.12.1 to work around an issue with running later versions on Travis CI.

First, clone this repo with the name of the desired provider in place of github:

git clone https://github.com/pulumi/pulumi-tf-provider-boilerplate pulumi-github

Second, replace references to github with the name of your provider:

make prepare NAME=foo REPOSITORY=github.com/pulumi/pulumi-foo

Next, list the configuration points for the provider in the area of the README.

Note: If the name of the desired Pulumi provider differs from the name of the Terraform provider, you will need to carefully distinguish between the references - see https://github.com/pulumi/pulumi-azure for an example.

Add dependencies

In order to properly build the sdks, the following tools are expected:

In the root of the repository, run:

Build the provider:

Installing

This package is available in many languages in the standard packaging formats.

Node.js (Java/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install @ibrasho/pulumi-github

or yarn:

$ yarn add @ibrasho/pulumi-github

Python

To use from Python, install using pip:

$ pip install pulumi_github

Go

To use from Go, use go get to grab the latest version of the library

$ go get github.com/ibrasho/pulumi-github/sdk/go/...

Configuration

The following configuration points are available for the github provider:

Reference

For detailed reference documentation, please visit the API docs.