Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.26 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.26 KB

Terraform Provider for HashiCups API

Overview

The Terraform provider for HashiCups API allows you to manage and interact with HashiCups resources using Terraform. This provider supports managing coffee and order resources.

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Adding Dependencies

This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.

To add a new dependency github.com/author/dependency to your Terraform provider:

go get github.com/author/dependency
go mod tidy

Then commit the changes to go.mod and go.sum.

Using the provider

Create or update your main.tf file with the following configuration:

terraform {
required_providers {
 hashicups = {
   source = "hashicorp.com/edu/hashicups"
 }
}
required_version = ">= 1.1.0"
}

provider "hashicups" {
username = "username"
password = "password"
host     = "http://localhost:19090"
}