Requirements
- Terraform >= 1.1.x (older versions may work but are entirely untested)
- OpenTofu
- Go >= 1.22
- ClouDNS API credentials and a pre-existing DNS zone manageable by the user/sub-user associated with said credentials
Building The Provider
- Clone the repository
- Enter the repository directory
- 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 OpenTofu/Terraform provider:
go get github.com/author/dependency
go mod tidy
Then commit the changes to go.mod and go.sum.
Using the provider
Ensure that you have an API user/sub-user on ClouDNS (requires a paid subscription with reseller access).
Note that using a sub-user which you delegate a specific zone to is a much safer approach and should always be your first choice
Once that is done, you must pre-create the zones you will want to manage on ClouDNS side (technically they are manageable through the API)