Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gcp/cloud-function-gen2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ module "trigger_provision" {
name = "function-${var.function_name}-provision"
description = "Provision ${var.function_name} Service (CI/CD)"
source = "../cloud-cloudbuild-trigger"
approval_required = var.approval_required
trigger_service_account = var.trigger_service_account
location = var.location
filename = var.function_path == "" ? "services/${var.service_name}/functions/${var.function_name}/cloudbuild.yaml" : "${var.function_path}/cloudbuild.yaml"
Expand Down
6 changes: 6 additions & 0 deletions gcp/cloud-function-gen2/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,9 @@ variable "node_version" {
description = "Default Node.js runtime version for deployed functions"
default = "nodejs16"
}

variable "approval_required" {
type = bool
default = false
description = "If true, Cloud Build trigger will require manual approval before executing."
}
Loading