This repository provides a Terraform template for Coder (https://github.com/coder/coder) that facilitates the setup of a cloud-based development environment using Hetzner Cloud. It allows provisioning of instances with optional vscode installation.
- Download files from repo
- Add them to .tar archive / or use the included one
- Create template in Coder by Uploading the .tar file
- Add hcloud API token from (https://console.hetzner.cloud/projects/<YOUR_PROJECT_ID>/security/tokens)
- Creates a Hetzner Cloud instance.
- Creates a Hetzner Cloud volume.
- Sets up a default inbound firewall policy.
- Attaches volumes and firewall policies to the instance.
- Offers the option to install code-server based on user preference.
- coder/coder: 0.23.0
- hetznercloud/hcloud: 1.47.0
- added metadata blocks for stats
- included .tar file for template upload
instance_location
: fsn1/Falkenstein (eu-central)instance_type
: cpx11- Hetzner Cloud server with shared AMD vCPU
- Specifications:
- Name: CPX11
- vCPUs: 2
- RAM: 2 GB
- SSD: 40 GB
- Traffic: 20 TB
- Price: €0.008/h, €4.66/mo, €0.61/IPv4
instance_os
: ubuntu-24.04volume_size
: 10 GB (minimum) persistent volume