From 0d37a73b80251c220959f0500088b3f0b8d051ec Mon Sep 17 00:00:00 2001
From: Ole Langbehn <ole.langbehn@inoio.de>
Date: Thu, 30 Jan 2025 19:17:09 +0100
Subject: [PATCH] feat: set min_instance_count to 0 for production as well

---
 terraform/environments/function.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terraform/environments/function.tf b/terraform/environments/function.tf
index dd31d95..da269c7 100644
--- a/terraform/environments/function.tf
+++ b/terraform/environments/function.tf
@@ -32,7 +32,7 @@ resource "google_cloudfunctions2_function" "holi-search-integration" {
 
   service_config {
     max_instance_count               = 1
-    min_instance_count               = local.environment_name == "production" ? 1 : 0
+    min_instance_count               = 0
     available_memory                 = "200Mi"
     timeout_seconds                  = 120
     available_cpu                    = 1
-- 
GitLab