The candidate's task is to build a reproducible infrastructure-as-code solution where Terraform provisions a Hetzner VPS and Cloudflare DNS, and Ansible configures a secure, self-updating Hugo website server.
- Terraform (Infrastructure Layer)
- Provider:
hcloud(Hetzner) andcloudflare. - Compute:
CX23VPS (2 vCPU, 4GB RAM) in Nuremberg (nbg1). - Security:
- Pre-configured SSH keys (referenced by name from Hetzner project).
- Provider:
- Dedicated
hcloud_firewallattached to the server allowing only TCP ports 22, 80, and 443.