From 3ea58ed6a94dcd508fd6893999632c2989e9da6e Mon Sep 17 00:00:00 2001 From: Oryna Otkalenko <76499690+maaaaaarkova@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:49:41 +0200 Subject: [PATCH 1/3] Update main.tf --- main.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/main.tf b/main.tf index da79b14f..f055da4a 100644 --- a/main.tf +++ b/main.tf @@ -134,6 +134,7 @@ resource "google_cloudfunctions_function" "main" { region = var.region service_account_email = var.service_account_email build_environment_variables = var.build_environment_variables + build_service_account = var.build_service_account docker_registry = var.docker_registry docker_repository = var.docker_repository kms_key_name = var.kms_key_name From 12c85fdb0f93dbc9ec98f60b39df918ed7890587 Mon Sep 17 00:00:00 2001 From: Oryna Otkalenko <76499690+maaaaaarkova@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:51:13 +0200 Subject: [PATCH 2/3] Added build_service_account --- variables.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/variables.tf b/variables.tf index fee2e9b4..0bef82f1 100644 --- a/variables.tf +++ b/variables.tf @@ -125,6 +125,12 @@ variable "service_account_email" { description = "The service account to run the function as." } +variable "build_service_account" { + type = string + default = "" + description = "The self-provided service account to use to build the function. The format of this field is projects/{project}/serviceAccounts/{serviceAccountEmail}" +} + variable "bucket_name" { type = string default = "" From c9a0162a97decd0d3b9bd05ef24a138af277073e Mon Sep 17 00:00:00 2001 From: Oryna Otkalenko Date: Wed, 22 Jan 2025 21:11:27 +0200 Subject: [PATCH 3/3] Update versions.tf --- versions.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.tf b/versions.tf index 6ac3c56a..a5e9d382 100644 --- a/versions.tf +++ b/versions.tf @@ -20,7 +20,7 @@ terraform { google = { source = "hashicorp/google" - version = ">= 4.23, < 7" + version = ">= 5.39, < 7" } null = { source = "hashicorp/null"