Files
hetzner-cluster/terraform/main.tf
2025-12-30 12:30:52 -05:00

14 lines
375 B
HCL

// Set up network for compute to live.
resource "hcloud_network" "net" {
name = "Private Network"
ip_range = local.net-cidr
}
// Provide internet to the private servers, by sending all internet traffic to
// the NAT.
resource "hcloud_network_route" "gateway" {
network_id = hcloud_network.net.id
destination = "0.0.0.0/0"
gateway = local.nat-private-ip
}