Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cf): adding trigger_http #28

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion gcp/cloud-function-gen2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ resource "google_cloudfunctions2_function" "function" {
available_memory = var.available_memory_mb
timeout_seconds = var.timeout_seconds
service_account_email = local.service_account
trigger_http = var.event_trigger != null ? false : var.trigger_http
environment_variables = merge(local.default_environment_variables, var.environment_variables)
dynamic "secret_environment_variables" {
for_each = var.secret_keys
content {
key = secret_environment_variables.value
project_id = var.project_id

secret = secret_environment_variables.value
secret = secret_environment_variables.value
version = "latest"
}
}
Expand Down
3 changes: 3 additions & 0 deletions gcp/cloud-function-gen2/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ variable "function_entry_point" {
default = ""
}

variable "trigger_http" {
default = true
}
variable "function_source_archive_object" {
default = ""
}
Expand Down
Loading