From 7bb9468c939360b40af09983348f6acf1f72fe42 Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Fri, 15 Nov 2024 11:21:58 +0000 Subject: [PATCH] Reduce length of Bigquery service account Fix for error: Error: "account_id" ("appender-wif-trs-pre-production") doesn't match regexp "^[a-z](?:[-a-z0-9]{4,28}[a-z0-9])$" This change will allow: - 6 characters for the short service name - 15 characters for the environment name --- aks/dfe_analytics/resources.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aks/dfe_analytics/resources.tf b/aks/dfe_analytics/resources.tf index 1f690bc..43ecc96 100644 --- a/aks/dfe_analytics/resources.tf +++ b/aks/dfe_analytics/resources.tf @@ -1,5 +1,5 @@ resource "google_service_account" "appender" { - account_id = "appender-wif-${var.service_short}-${var.environment}" + account_id = "app-wif-${var.service_short}-${var.environment}" display_name = "Service Account appender to ${var.service_short} in ${var.environment} environment" description = "Configured with workflow identity federation from Azure" }