terraform-hetzner

Provision Hetzner Cloud VPS, firewalls, DNS, and remote state with Terraform.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/franciscosanchezn/easyfactu-es --skill terraform-hetzner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-hetzner
Source: https://github.com/franciscosanchezn/easyfactu-es/tree/main/.github/skills/terraform-hetzner
Command: npx skills add https://github.com/franciscosanchezn/easyfactu-es --skill terraform-hetzner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provision Hetzner Cloud infrastructure with Terraform, enabling automated VPS provisioning, firewall configuration, DNS management, and centralized state handling.

Core Features & Use Cases

  • Automated Hetzner VPS provisioning and firewall rules for secure K3s clusters
  • DNS configuration and wildcard/subdomain management with Hetzner DNS
  • Reusable Terraform modules and remote state backends for team collaboration
  • Cloud-init bootstrap and environment-specific customization for cost-effective deployments

Quick Start

Deploy a cost-optimized Hetzner K3s cluster by using the Terraform module in your environment.

Frequently Asked Questions about terraform-hetzner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I provision a K3s cluster on Hetzner Cloud using Terraform?

You can provision a K3s cluster on Hetzner Cloud by using Terraform modules to automate VPS creation, configure firewall rules, and manage DNS records. This approach enables cost-efficient, multi-environment deployments with reusable infrastructure-as-code.

Can I manage Hetzner DNS records and wildcard subdomains with Terraform?

Yes, Terraform can manage Hetzner DNS records and wildcard subdomains directly. By configuring the Hetzner DNS provider within your Terraform module, you automate subdomain routing and DNS configuration for your provisioned VPS infrastructure.

What prerequisites do I need to automate Hetzner VPS provisioning with Terraform?

You need Terraform installed, Hetzner provider credentials, and environment variables configured for security. Optional integrations for DNS and cloud-init bootstrapping are also supported to customize environment-specific deployments.

Does this Terraform approach support remote state management for team collaboration?

Yes, the Terraform modules support remote state backends to facilitate team collaboration. Centralized state handling ensures that your infrastructure changes are tracked consistently across multi-environment setups.

How do I configure firewalls for secure K3s clusters using Terraform?

Terraform automates firewall setup by defining rules within the infrastructure-as-code modules. This ensures your Hetzner Cloud VPS instances running K3s clusters are secured according to your specified environment configurations.

Can I use cloud-init to bootstrap Hetzner Cloud VPS instances in Terraform?

Yes, cloud-init bootstrap is supported for environment-specific customization of Hetzner Cloud VPS instances. This integration allows you to automate initial software setup and configuration during the Terraform provisioning process.