Skip to content

Commit

Permalink
feat: add function max instances argument (#66) (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoon authored Feb 15, 2022
1 parent 01c160c commit f08a0a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Then perform the following commands on the root folder:
| function\_environment\_variables | A set of key/value environment variable pairs to assign to the function. | `map(string)` | `{}` | no |
| function\_event\_trigger\_failure\_policy\_retry | A toggle to determine if the function should be retried on failure. | `bool` | `false` | no |
| function\_labels | A set of key/value label pairs to assign to the function. | `map(string)` | `{}` | no |
| function\_max\_instances | The maximum number of parallel executions of the function. | `number` | `0` | no |
| function\_name | The name to apply to the function | `string` | n/a | yes |
| function\_runtime | The runtime in which the function will be executed. | `string` | `"nodejs10"` | no |
| function\_service\_account\_email | The service account to run the function as. | `string` | `""` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ module "main" {
labels = var.function_labels
service_account_email = var.function_service_account_email
timeout_s = var.function_timeout_s
max_instances = var.function_max_instances
vpc_connector = var.vpc_connector
vpc_connector_egress_settings = var.vpc_connector_egress_settings
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ variable "function_service_account_email" {
description = "The service account to run the function as."
}

variable "function_max_instances" {
type = number
default = 0
description = "The maximum number of parallel executions of the function."
}

variable "vpc_connector" {
type = string
default = null
Expand Down

0 comments on commit f08a0a4

Please sign in to comment.