test: try doing the lb separately

This commit is contained in:
2026-01-01 15:59:48 -05:00
parent 4768c94b24
commit b04298adfb
8 changed files with 101 additions and 91 deletions

View File

@@ -20,8 +20,9 @@ resource "hcloud_network_route" "gateway" {
gateway = local.nat-private-ip
}
// A managed certificate for the domain, to be used by the load balancer.
resource "hcloud_managed_certificate" "managed_cert" {
name = "managed_cert"
domain_names = ["*.${local.domain}", "${local.domain}"]
// Attach the load blaancer to the private network.
resource "hcloud_load_balancer_network" "attachment" {
load_balancer_id = hcloud_load_balancer.lb.id
subnet_id = hcloud_network_subnet.subnet.id
ip = local.lb-private-ip
}