https://github.com/hatchet-dev/terraform-provider-hatchet
Terraform provider for Hatchet Cloud
https://github.com/hatchet-dev/terraform-provider-hatchet
go hatchet terraform
Last synced: about 1 month ago
JSON representation
Terraform provider for Hatchet Cloud
- Host: GitHub
- URL: https://github.com/hatchet-dev/terraform-provider-hatchet
- Owner: hatchet-dev
- License: mit
- Created: 2025-08-14T14:13:40.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-11T04:32:04.000Z (9 months ago)
- Last Synced: 2025-09-11T07:58:23.990Z (9 months ago)
- Topics: go, hatchet, terraform
- Language: Go
- Homepage: https://registry.terraform.io/providers/hatchet-dev/hatchet/latest/docs
- Size: 128 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Provider for Hatchet Cloud
A Terraform provider for managing Hatchet Cloud resources.
## Requirements
- [Terraform](https://www.terraform.io/downloads.html) >= 1.0
- [Go](https://golang.org/doc/install) >= 1.25
## Building The Provider
1. Clone the repository
2. Enter the repository directory
3. Build the provider using the Go `go build` command:
```shell
go build -o terraform-provider-hatchet
```
## Installing the Provider
### Local Installation
To install the provider locally for development:
```shell
make install
```
This will build the provider and install it in the correct location for Terraform to find it.
### Using the Provider
Create a Terraform configuration file (e.g., `main.tf`) with the following content:
```hcl
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:
```bash
export HATCHET_CLOUD_MANAGEMENT_TOKEN="your-api-token-here"
```
## Development
### Running Tests
```shell
make test
```
### Formatting Code
```shell
make fmt
```
### Generating Documentation
```shell
make docs
```
### Cleaning Build Artifacts
```shell
make clean
```
## Provider Configuration
The Hatchet Cloud provider supports the following configuration options:
- `token` (Sensitive): Your Hatchet Cloud API token for authentication. Can also be set via the `HATCHET_CLOUD_MANAGEMENT_TOKEN` environment variable.
## Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests for your changes
5. Run the test suite
6. Submit a pull request
## License
This project is licensed under the MIT License.