-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgoogle_cloudfunctions_function.lambda.tf
More file actions
34 lines (29 loc) · 1.28 KB
/
Copy pathgoogle_cloudfunctions_function.lambda.tf
File metadata and controls
34 lines (29 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# holden:ignore:HLD_GCP_019 — labels applied via provider default_labels
# holden:ignore:HLD_GCP_288
resource "google_cloudfunctions_function" "lambda" {
available_memory_mb = var.lambda["available_memory_mb"]
entry_point = var.lambda["entry_point"]
environment_variables = {}
source_archive_bucket = google_storage_bucket.code.name
source_archive_object = google_storage_bucket_object.archive.name
https_trigger_security_level = "SECURE_ALWAYS"
ingress_settings = try(var.lambda["ingress_settings"], "ALLOW_INTERNAL_AND_GCLB")
kms_key_name = var.kms_key_name
max_instances = var.max_instances
name = var.lambda["name"]
project = var.project
region = var.region
runtime = var.lambda["runtime"]
service_account_email = var.lambda["service_account_email"]
timeout = var.lambda["timeout"]
vpc_connector = var.vpc_connector
vpc_connector_egress_settings = var.vpc_connector_egress_settings
event_trigger {
event_type = var.lambda["event_trigger_type"]
resource = var.lambda["event_trigger_resource"]
failure_policy {
retry = false
}
}
timeouts {}
}