You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Provision Hetzner Cloud servers as Coder workspaces
4
+
icon: ../../../../.icons/hetzner.svg
5
+
tags: [vm, linux, hetzner]
6
+
---
7
+
8
+
# Remote Development on Hetzner Cloud (Linux)
9
+
10
+
Provision Hetzner Cloud servers as [Coder workspaces](https://coder.com/docs/workspaces) with this example template.
11
+
12
+
> [!IMPORTANT]
13
+
> **Volume Management & Costs:** Hetzner Cloud volumes persist even when workspaces are stopped and will continue to incur storage costs (€0.0476/GB/month). Volumes are only automatically deleted when the workspace is completely deleted. Monitor your volumes in the [Hetzner Cloud Console](https://console.hetzner.cloud/) to manage costs effectively.
14
+
15
+
## Prerequisites
16
+
17
+
To deploy workspaces as Hetzner Cloud servers, you'll need:
18
+
19
+
- Hetzner Cloud [API token](https://console.hetzner.cloud/projects) (create under Security > API Tokens)
20
+
21
+
### Authentication
22
+
23
+
This template assumes that the Coder Provisioner is run in an environment that is authenticated with Hetzner Cloud.
24
+
25
+
Obtain a Hetzner Cloud API token from your [Hetzner Cloud Console](https://console.hetzner.cloud/projects) and provide it as the `hcloud_token` variable when creating a workspace.
26
+
For more authentication options, see the [Terraform provider documentation](https://registry.terraform.io/providers/hetznercloud/hcloud/latest/docs#authentication).
27
+
28
+
> [!NOTE]
29
+
> This template is designed to be a starting point. Edit the Terraform to extend the template to support your use case.
# This ensures that the latest non-breaking version of the module gets downloaded, you can also pin the module version to prevent breaking changes in production.
0 commit comments