Developer tools / User guide
Terraform provider
Use the Anchras Terraform provider for supported resources and understand its coverage boundary.
On this page
The Anchras Terraform provider manages a subset of platform resources. Consult the provider distribution supplied with your release for supported resources, schema fields, and installation instructions.
Before you begin
Create an API key with the required scopes and select the correct API endpoint. Store provider credentials through protected Terraform variables or your CI secret manager. Treat Terraform state as sensitive because it can contain resource configuration and outputs.
Adopt a resource
- Verify the desired resource is supported by your installed provider version.
- Configure the Anchras endpoint and credentials using that version's schema.
- Write the resource configuration and run
terraform plan. - Review the exact proposed actions before running
terraform apply. - Confirm both Terraform state and provider resource status after execution.
Coverage and ownership
Terraform coverage does not yet match every dashboard and API operation. Use the service API or CLI for unsupported capabilities, and avoid managing the same mutable fields simultaneously through Terraform and another writer.
Supported resource families
The provider includes resources for clusters, deployments, instances, cloud accounts, buckets, DNS zones and records, load balancers, fleets and memberships, file shares, secrets, provider selections, networks and network segments, tailnet ACLs and policy, tailnet settings, DNS and split DNS, tailnet keys, OAuth clients and federated identities, tailnet device authorization, tags, routes, keys and posture attributes, tailnet shares, cloud volumes and attachments, alert rules, and AI providers/models. Read-only data sources cover additional catalog, inventory, metrics, and fleet queries.
Resource updates are not uniformly in-place. Instance argument changes currently require replacement. Cluster Kubernetes-version changes can upgrade in place, while other cluster provisioning arguments require replacement. Volume capacity can grow in place, but placement changes require replacement. Review the plan for destructive replacements.
The provider is distributed with the platform source and is intended for publication as anchras/anchras; do not assume a public Terraform Registry release exists. Use the distribution/install instructions for your release.
Troubleshooting
For drift, compare configuration, refreshed state, and actual provider state before applying changes. For permission failures, check the API key's action and resource scopes. For unsupported resources or fields, use the schema of the installed provider version rather than assuming parity with the current dashboard.
