A Terraform provider for managing Hatchet Cloud resources.
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
go buildcommand:
go build -o terraform-provider-hatchetTo install the provider locally for development:
make installThis will build the provider and install it in the correct location for Terraform to find it.
Create a Terraform configuration file (e.g., main.tf) with the following content:
terraform {
required_providers {
hatchet = {
source = "hatchet-dev/hatchet"
version = "~> 1.0"
}
}
}
provider "hatchet" {
# optionally can set the "token" but for production environments please use the HATCHET_CLOUD_MANAGEMENT_TOKEN environment variable
}You can also use environment variables for configuration:
export HATCHET_CLOUD_MANAGEMENT_TOKEN="your-api-token-here"make testmake fmtmake docsmake cleanThe Hatchet Cloud provider supports the following configuration options:
token(Sensitive): Your Hatchet Cloud API token for authentication. Can also be set via theHATCHET_CLOUD_MANAGEMENT_TOKENenvironment variable.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for your changes
- Run the test suite
- Submit a pull request
This project is licensed under the MIT License.