feat: new load balancer, with dns via route 53

This commit is contained in:
2025-12-31 12:10:52 -05:00
parent b8938983dc
commit a916da7d45
6 changed files with 105 additions and 29 deletions

21
terraform/network.tf Normal file
View File

@@ -0,0 +1,21 @@
// Set up network for compute to live.
resource "hcloud_network" "net" {
name = "Private Network"
ip_range = local.net-cidr
}
// Set up private subnet, for compute.
resource "hcloud_network_subnet" "subnet" {
network_id = hcloud_network.net.id
type = "cloud"
network_zone = "eu-central"
ip_range = local.subnet-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
}