@@ -20,14 +20,14 @@ resource "google_api_gateway_api" "api" {
2020}
2121
2222resource "google_api_gateway_api_config" "api_config" {
23- provider = google- beta
23+ provider = google- beta
2424 api = google_api_gateway_api. api . api_id
2525 api_config_id_prefix = " api"
2626 project = " httparchive"
2727 display_name = " The prod Config"
2828 openapi_documents {
2929 document {
30- path = " spec.yaml"
30+ path = " spec.yaml"
3131 contents = base64encode (<<- EOF
3232swagger: "2.0"
3333info:
@@ -204,6 +204,7 @@ module "adoption" {
204204 function_name = " adoption"
205205 service_account_email = var. google_service_account_cloud_functions
206206 service_account_api_gateway = var. google_service_account_api_gateway
207+ min_instances = var. min_instances
207208 environment_variables = {
208209 " PROJECT" = " httparchive" ,
209210 " DATABASE" = var.project_database
@@ -219,6 +220,7 @@ module "page-weight" {
219220 function_name = " page-weight"
220221 service_account_email = var. google_service_account_cloud_functions
221222 service_account_api_gateway = var. google_service_account_api_gateway
223+ min_instances = var. min_instances
222224 environment_variables = {
223225 " PROJECT" = " httparchive" ,
224226 " DATABASE" = var.project_database
@@ -234,6 +236,7 @@ module "categories" {
234236 function_name = " categories"
235237 service_account_email = var. google_service_account_cloud_functions
236238 service_account_api_gateway = var. google_service_account_api_gateway
239+ min_instances = var. min_instances
237240 environment_variables = {
238241 " PROJECT" = " httparchive" ,
239242 " DATABASE" = var.project_database
0 commit comments