Skip to content

Commit a2daf3b

Browse files
committed
fix: set optional max_instances to default null
1 parent cacdf86 commit a2daf3b

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module "localhost_function" {
6969
| labels | A set of key/value label pairs to assign to the Cloud Function. | `map(string)` | `{}` | no |
7070
| log\_bucket | Log bucket | `string` | `null` | no |
7171
| log\_object\_prefix | Log object prefix | `string` | `null` | no |
72-
| max\_instances | The maximum number of parallel executions of the function. | `number` | `0` | no |
72+
| max\_instances | The maximum number of parallel executions of the function. | `number` | `3000` | no |
7373
| name | The name to apply to any nameable resources. | `string` | n/a | yes |
7474
| project\_id | The ID of the project to which resources will be applied. | `string` | n/a | yes |
7575
| region | The region in which resources will be applied. | `string` | n/a | yes |

modules/repository-function/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,3 @@ variable "timeouts" {
126126
error_message = "Only create, update, delete timeouts can be specified."
127127
}
128128
}
129-

test/setup/versions.tf

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "google" {
22-
version = ">= 3.53.0, < 5.0"
23-
}
18+
required_version = ">= 0.13"
19+
required_providers {
2420

25-
provider "google-beta" {
26-
version = ">= 3.53.0, < 5.0"
21+
google = {
22+
source = "hashicorp/google"
23+
version = ">= 3.53.0, < 5.0"
24+
}
25+
google-beta = {
26+
source = "hashicorp/google-beta"
27+
version = ">= 3.53.0, < 5.0"
28+
}
29+
}
2730
}

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ variable "timeout_s" {
109109

110110
variable "max_instances" {
111111
type = number
112-
default = 0
112+
default = 3000
113113
description = "The maximum number of parallel executions of the function."
114114
}
115115

0 commit comments

Comments
 (0)