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" {
175175 function_name = " cwvtech"
176176 service_account_email = var. google_service_account_cloud_functions
177177 service_account_api_gateway = var. google_service_account_api_gateway
178+ min_instances = var. min_instances
178179 environment_variables = {
179180 " PROJECT" = " httparchive" ,
180181 " DATABASE" = var.project_database
Original file line number Diff line number Diff line change @@ -11,5 +11,11 @@ variable "google_service_account_api_gateway" {
1111variable "project_database" {
1212 type = string
1313 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
1521}
Original file line number Diff line number Diff line change @@ -67,4 +67,4 @@ variable "environment_variables" {
6767 description = " environment_variables"
6868 default = {}
6969 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" {
1111variable "project_database" {
1212 type = string
1313 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