Skip to content

Commit 1f1c8c5

Browse files
authored
feat: Add support for Ingress Settings (var.ingress_settings) on the function (#43)
1 parent 3c1cd6f commit 1f1c8c5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ module "localhost_function" {
7070
| source\_dependent\_files | A list of any Terraform created `local_file`s that the module will wait for before creating the archive. | object | `<list>` | no |
7171
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
7272
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number | `"60"` | no |
73+
| ingress\_settings | The ingress settings for the function | string | `"ALLOW_ALL"` | no |
74+
7375

7476
## Outputs
7577

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ resource "google_cloudfunctions_function" "main" {
7373
available_memory_mb = var.available_memory_mb
7474
timeout = var.timeout_s
7575
entry_point = var.entry_point
76+
ingress_settings = var.ingress_settings
7677

7778
event_trigger {
7879
event_type = var.event_trigger["event_type"]

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,9 @@ variable "event_trigger_failure_policy_retry" {
123123
default = false
124124
description = "A toggle to determine if the function should be retried on failure."
125125
}
126+
127+
variable "ingress_settings" {
128+
type = string
129+
default = "ALLOW_ALL"
130+
description = "Ingress settings for the Cloud Function"
131+
}

0 commit comments

Comments
 (0)