File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ module "cwvtech" {
175
175
function_name = " cwvtech"
176
176
service_account_email = var. google_service_account_cloud_functions
177
177
service_account_api_gateway = var. google_service_account_api_gateway
178
+ min_instances = var. min_instances
178
179
environment_variables = {
179
180
" PROJECT" = " httparchive" ,
180
181
" DATABASE" = var.project_database
Original file line number Diff line number Diff line change @@ -11,5 +11,11 @@ variable "google_service_account_api_gateway" {
11
11
variable "project_database" {
12
12
type = string
13
13
description = " The database name"
14
-
14
+
15
+ }
16
+
17
+ variable "min_instances" {
18
+ description = " (Optional) The limit on the minimum number of function instances that may coexist at a given time."
19
+ type = number
20
+ default = 1
15
21
}
Original file line number Diff line number Diff line change @@ -67,4 +67,4 @@ variable "environment_variables" {
67
67
description = " environment_variables"
68
68
default = {}
69
69
type = map (string )
70
- }
70
+ }
Original file line number Diff line number Diff line change @@ -11,5 +11,11 @@ variable "google_service_account_api_gateway" {
11
11
variable "project_database" {
12
12
type = string
13
13
description = " The database name"
14
-
15
- }
14
+
15
+ }
16
+
17
+ variable "min_instances" {
18
+ description = " (Optional) The limit on the minimum number of function instances that may coexist at a given time."
19
+ type = number
20
+ default = 0
21
+ }
You can’t perform that action at this time.
0 commit comments