Skeen / terraform-provider-os2mo

Terraform provider for Hashicups demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Provider OS2mo

This repo is a companion repo to the Call APIs with Terraform Providers Learn collection.

In the collection, you will use the HashiCups provider as a bridge between Terraform and the HashiCups API. Then, extend Terraform by recreating the HashiCups provider. By the end of this collection, you will be able to take these intuitions to create your own custom Terraform provider.

Visit the boilerplate branch of this repository for this Terraform provider's specific starter template. The Terraform Provider Scaffold is a quick-start repository for creating a Terraform provider. Use this GitHub template when you're ready to create your own custom provider.

Build provider

Run the following command to build the provider

$ go build -o terraform-provider-os2mo

Local release build

$ go install github.com/goreleaser/goreleaser@latest
$ make release

You will find the releases in the /dist directory. You will need to rename the provider binary to terraform-provider-os2mo and move the binary into the appropriate subdirectory within the user plugins directory.

Test sample configuration

First, build and install the provider.

$ make install

Then, navigate to the examples directory.

$ cd examples

Run the following command to initialize the workspace and apply the sample configuration.

$ terraform init && terraform apply

About

Terraform provider for Hashicups demo app


Languages

Language:Go 92.4%Language:Makefile 7.6%