diff --git a/infra/apis.tf b/infra/apis.tf index 611d3d1a7..b7be13a01 100644 --- a/infra/apis.tf +++ b/infra/apis.tf @@ -51,3 +51,11 @@ resource "time_sleep" "cloud_run_v2_service" { create_duration = "45s" } + +resource "time_sleep" "load_balancer_warm_up_time" { + depends_on = [ + google_compute_global_forwarding_rule.http + ] + + create_duration = "370s" +} diff --git a/infra/main.tf b/infra/main.tf index a1250c812..e48ba084b 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -287,6 +287,7 @@ resource "google_firestore_database" "database" { concurrency_mode = "PESSIMISTIC" app_engine_integration_mode = "DISABLED" depends_on = [ - time_sleep.project_services + time_sleep.project_services, + time_sleep.load_balancer_warm_up_time ] }