diff --git a/main.tf b/main.tf index da79b14..f055da4 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 diff --git a/variables.tf b/variables.tf index fee2e9b..0bef82f 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 = "" diff --git a/versions.tf b/versions.tf index ad86647..9d53299 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"