Skip to content

NSSPKrishna/terraform-provider-hashicups

 
 

Repository files navigation

Terraform Provider Hashicups

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-hashicups

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-hashicups 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

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.7%
  • Makefile 4.3%