feat: compute subnet

This commit is contained in:
2025-12-30 12:38:53 -05:00
parent 1e17d87b4f
commit 70735d8f22
3 changed files with 22 additions and 4 deletions

View File

@@ -4,6 +4,14 @@ resource "hcloud_network" "net" {
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" {