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.
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
install
command:
go install
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
.
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"
}