Skip to content

Commit c5f0332

Browse files
committed
keep live instances for cwvtech
1 parent 48c7a86 commit c5f0332

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

terraform/dev/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

terraform/dev/variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ variable "google_service_account_api_gateway" {
1111
variable "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
}

terraform/modules/cloud-function/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ variable "environment_variables" {
6767
description = "environment_variables"
6868
default = {}
6969
type = map(string)
70-
}
70+
}

terraform/prod/variables.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ variable "google_service_account_api_gateway" {
1111
variable "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+
}

0 commit comments

Comments
 (0)