Skip to content

Commit a68339d

Browse files
authored
feat: include Ingress Settings variable (#129)
1 parent 17e3c1a commit a68339d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Then perform the following commands on the root folder:
5656
| function\_source\_directory | The contents of this directory will be archived and used as the function source. | `string` | n/a | yes |
5757
| function\_timeout\_s | The amount of time in seconds allotted for the execution of the function. | `number` | `60` | no |
5858
| grant\_token\_creator | Specify true if you want to add token creator role to the default Pub/Sub SA | `bool` | `false` | no |
59+
| ingress\_settings | The ingress settings for the function. Allowed values are ALLOW\_ALL, ALLOW\_INTERNAL\_AND\_GCLB and ALLOW\_INTERNAL\_ONLY. Changes to this field will recreate the cloud function. | `string` | `null` | no |
5960
| job\_description | Addition text to describe the job | `string` | `""` | no |
6061
| job\_name | The name of the scheduled job to run | `string` | `null` | no |
6162
| job\_schedule | The job frequency, in cron syntax | `string` | `"*/2 * * * *"` | no |

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module "main" {
8686
service_account_email = var.function_service_account_email
8787
timeout_s = var.function_timeout_s
8888
max_instances = var.function_max_instances
89+
ingress_settings = var.ingress_settings
8990
vpc_connector = var.vpc_connector
9091
vpc_connector_egress_settings = var.vpc_connector_egress_settings
9192
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ variable "function_max_instances" {
122122
description = "The maximum number of parallel executions of the function."
123123
}
124124

125+
variable "ingress_settings" {
126+
type = string
127+
default = null
128+
description = "The ingress settings for the function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY. Changes to this field will recreate the cloud function."
129+
}
130+
125131
variable "vpc_connector" {
126132
type = string
127133
default = null

0 commit comments

Comments
 (0)