Skip to content

Commit

Permalink
Merge pull request #37 from GoogleCloudPlatform/fix/minor-output-updates
Browse files Browse the repository at this point in the history
fix: minor output updates and load balancer timeout
  • Loading branch information
pattishin authored Apr 25, 2023
2 parents 9f73f2e + a4bfa92 commit f950824
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions infra/apis.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
}
2 changes: 1 addition & 1 deletion infra/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit f950824

Please sign in to comment.