diff --git a/main.tf b/main.tf index da79b14..6259892 100644 --- a/main.tf +++ b/main.tf @@ -133,6 +133,7 @@ resource "google_cloudfunctions_function" "main" { project = var.project_id region = var.region service_account_email = var.service_account_email + build_service_account = var.build_service_account build_environment_variables = var.build_environment_variables docker_registry = var.docker_registry docker_repository = var.docker_repository diff --git a/variables.tf b/variables.tf index fee2e9b..aa70635 100644 --- a/variables.tf +++ b/variables.tf @@ -20,6 +20,12 @@ variable "available_memory_mb" { description = "The amount of memory in megabytes allotted for the function to use." } +variable "build_service_account" { + type = string + default = null + description = " The self-provided service account to use to build the function. The format of this value is projects/{project}/serviceAccounts/{serviceAccountEmail}" +} + variable "description" { type = string default = "Processes events." diff --git a/versions.tf b/versions.tf index 6ac3c56..a5e9d38 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"