File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ Then perform the following commands on the root folder:
4646| function\_ environment\_ variables | A set of key/value environment variable pairs to assign to the function. | ` map(string) ` | ` {} ` | no |
4747| function\_ event\_ trigger\_ failure\_ policy\_ retry | A toggle to determine if the function should be retried on failure. | ` bool ` | ` false ` | no |
4848| function\_ labels | A set of key/value label pairs to assign to the function. | ` map(string) ` | ` {} ` | no |
49+ | function\_ max\_ instances | The maximum number of parallel executions of the function. | ` number ` | ` 0 ` | no |
4950| function\_ name | The name to apply to the function | ` string ` | n/a | yes |
5051| function\_ runtime | The runtime in which the function will be executed. | ` string ` | ` "nodejs10" ` | no |
5152| function\_ service\_ account\_ email | The service account to run the function as. | ` string ` | ` "" ` | no |
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ module "main" {
8383 labels = var. function_labels
8484 service_account_email = var. function_service_account_email
8585 timeout_s = var. function_timeout_s
86+ max_instances = var. function_max_instances
8687 vpc_connector = var. vpc_connector
8788 vpc_connector_egress_settings = var. vpc_connector_egress_settings
8889}
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ variable "function_service_account_email" {
110110 description = " The service account to run the function as."
111111}
112112
113+ variable "function_max_instances" {
114+ type = number
115+ default = 0
116+ description = " The maximum number of parallel executions of the function."
117+ }
118+
113119variable "vpc_connector" {
114120 type = string
115121 default = null
You can’t perform that action at this time.
0 commit comments