This scenario provisions Hetzner Cloud servers through Coolify, demonstrating the full workflow for cloud-based infrastructure:
- SSH deploy key (
coolify_private_key) for authenticating to provisioned servers. - Hetzner cloud token (
coolify_cloud_token) to register the Hetzner API token with Coolify. - Production server (
coolify_server_hetzner) -- a cx22 instance in Falkenstein for running applications. - Build server (
coolify_server_hetzner) -- a cx32 instance in Nuremberg dedicated to builds.
cp terraform.tfvars.example terraform.tfvars
# Edit terraform.tfvars with your values
terraform init
terraform applyNote: This scenario provisions real Hetzner Cloud servers and incurs costs. The included test uses
command = planto validate configuration without creating resources.
| Resource | Purpose |
|---|---|
coolify_private_key.deploy |
SSH key for server access |
coolify_cloud_token.hetzner |
Hetzner API token registration |
coolify_server_hetzner.production |
Production application server (cx22, fsn1) |
coolify_server_hetzner.build |
Dedicated build server (cx32, nbg1) |