Project
Infrastructure as code on Hetzner
A repository that provisions the infrastructure for a Go application on Hetzner Cloud from nothing, and removes it again with one command.
Images: Packer builds images for the Go application, PostgreSQL and S3-compatible storage (MinIO).
Provisioning: Terraform launches the servers, volumes and networking; cloud-init applies the base configuration.
Glue: a single
infra.shscript wraps Packer, Terraform, thehcloudCLI andsupforupanddown.DNS: Cloudflare records are updated automatically while provisioning.
Write-up: Infrastructure as code on Hetzner