From 0f289761bc78b6f54a35bba0af34be84b0a5c1c0 Mon Sep 17 00:00:00 2001 From: davidumea Date: Fri, 11 Oct 2024 15:23:44 +0200 Subject: [PATCH] terraform upcloud: add support for gateway in private zone --- contrib/terraform/upcloud/modules/kubernetes-cluster/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/terraform/upcloud/modules/kubernetes-cluster/main.tf b/contrib/terraform/upcloud/modules/kubernetes-cluster/main.tf index 54a635ac2..c979de3d5 100644 --- a/contrib/terraform/upcloud/modules/kubernetes-cluster/main.tf +++ b/contrib/terraform/upcloud/modules/kubernetes-cluster/main.tf @@ -816,7 +816,7 @@ resource "upcloud_router" "router" { resource "upcloud_gateway" "gateway" { for_each = var.router_enable ? var.gateways : {} name = "${local.resource-prefix}${each.key}-gateway" - zone = var.zone + zone = var.private_cloud ? var.public_zone : var.zone features = each.value.features plan = each.value.plan