Skip to content

Boilerplate code for Terraform provider-backed Pulumi packages

License

Notifications You must be signed in to change notification settings

pulumi/pulumi-tf-provider-boilerplate

Terraform Bridge Provider Boilerplate

This repository is the template for authoring a Pulumi package from an existing Terraform provider as part of the guide for authoring and publishing Pulumi packages.

This repository is initially set up as a fictitious provider named "xyz" to demonstrate a resource, a data source and configuration derived from the github.com/pulumi/terraform-provider-xyz provider.

Read the setup instructions for step-by-step instructions on how to bridge a new provider and refer to our complete docs guide for authoring and publishing a Pulumi Package.

Xyz Resource Provider

The Xyz Resource Provider lets you manage Xyz resources.

Installing

This package is available for several languages/platforms:

Node.js (JavaScript/TypeScript)

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

npm install @pulumi/xyz

or yarn:

yarn add @pulumi/xyz

Python

To use from Python, install using pip:

pip install pulumi_xyz

Go

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

go get github.com/pulumi/pulumi-xyz/sdk/go/...

.NET

To use from .NET, install using dotnet add package:

dotnet add package Pulumi.Xyz

Configuration

The following configuration points are available for the xyz provider:

  • xyz:region (environment: XYZ_REGION) - the region in which to deploy resources

Reference

For detailed reference documentation, please visit the Pulumi registry.