## Description This PR adds a template example for the Hetzner Cloud Sever. This video shows the provisioning of multiple hetzner instances in coder with dynamic param enabled, running simultaneously and shown in the Hetzner console, checking labels on both the OS Filesystem and on the hetzner console and then shutting down through coder demonstrating clean up on hetzner and deleting workspaces without errors DEMO VIDEO: https://drive.google.com/file/d/1JkhjszCRM9K27XDlMi_2nXtJosoflns_/view?usp=sharing ## Type of Change - [ ] New module - [x] New template - [ ] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other ## Template Information **Path:** `registry/Excellencedev/templates/hetzner-linux` ## Testing & Validation - [x] Tests pass (`bun test`) - [x] Code formatted (`bun fmt`) - [x] Changes tested locally ## Related Issues /closes #209 /claim #209 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: DevCats <christofer@coder.com>
1.7 KiB
| display_name | description | icon | tags | |||
|---|---|---|---|---|---|---|
| Hetzner Cloud Server | Provision Hetzner Cloud servers as Coder workspaces | ../../../../.icons/hetzner.svg |
|
Remote Development on Hetzner Cloud (Linux)
Provision Hetzner Cloud servers as Coder workspaces with this example template.
Warning
Workspace Storage Persistence: When a workspace is stopped, the Hetzner Cloud server instance is stopped but your home volume and stored data persist. This means your files and data remain intact when you resume the workspace.
Important
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 to manage costs effectively.
Prerequisites
To deploy workspaces as Hetzner Cloud servers, you'll need:
- Hetzner Cloud API token (create under Security > API Tokens)
Authentication
This template assumes that the Coder Provisioner is run in an environment that is authenticated with Hetzner Cloud.
Obtain a Hetzner Cloud API token from your Hetzner Cloud Console and provide it as the hcloud_token variable when creating a workspace.
For more authentication options, see the Terraform provider documentation.
Note
This template is designed to be a starting point. Edit the Terraform to extend the template to support your use case.