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 ] } diff --git a/infra/outputs.tf b/infra/outputs.tf index 0efdddc84..8acb2314d 100644 --- a/infra/outputs.tf +++ b/infra/outputs.tf @@ -16,7 +16,7 @@ output "frontend_url" { description = "IP address to site. Load balancer expected to take ~5 minutes for it to warm up." - value = "http://${google_compute_global_address.default.address}/ (Wait ~5 minutes for it to warm up.)" + value = "http://${google_compute_global_address.default.address}/" } output "neos_toc_url" {