From 4a377c180ec840ba05d1d48ad446adfec892c4f8 Mon Sep 17 00:00:00 2001 From: Miklos Niedermayer Date: Fri, 9 Sep 2022 06:51:48 +0200 Subject: [PATCH 1/2] Fix automation gcs location --- fast/stages/00-bootstrap/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast/stages/00-bootstrap/main.tf b/fast/stages/00-bootstrap/main.tf index b8f165c7bd..839019f3cf 100644 --- a/fast/stages/00-bootstrap/main.tf +++ b/fast/stages/00-bootstrap/main.tf @@ -16,8 +16,8 @@ locals { gcs_storage_class = ( - length(split("-", var.locations.gcs)) > 1 - ? "MULTI-REGIONAL" + length(split("-", var.locations.gcs)) < 2 + ? "MULTI_REGIONAL" : "REGIONAL" ) groups = { From dbd61768f8d26bb7b721866baf4700cf6d0ac503 Mon Sep 17 00:00:00 2001 From: Ludovico Magnocavallo Date: Fri, 9 Sep 2022 07:17:36 +0200 Subject: [PATCH 2/2] also apply change to stage 01 --- fast/stages/01-resman/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fast/stages/01-resman/main.tf b/fast/stages/01-resman/main.tf index 1dd40594fd..f50832c787 100644 --- a/fast/stages/01-resman/main.tf +++ b/fast/stages/01-resman/main.tf @@ -67,8 +67,8 @@ locals { } custom_roles = coalesce(var.custom_roles, {}) gcs_storage_class = ( - length(split("-", var.locations.gcs)) > 1 - ? "MULTI-REGIONAL" + length(split("-", var.locations.gcs)) < 2 + ? "MULTI_REGIONAL" : "REGIONAL" ) groups = {