terraform upcloud: add support for gateway in private zone

pull/11696/head
davidumea 2024-10-11 15:23:44 +02:00 committed by Fredrik Liv
parent 6bb880a827
commit 0f289761bc
No known key found for this signature in database
GPG Key ID: 207869278D64F059
1 changed files with 1 additions and 1 deletions

View File

@ -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