Skip to content

Commit

Permalink
refactor: adding in timer after load balancer creation to cover warm …
Browse files Browse the repository at this point in the history
…up time
  • Loading branch information
pattishin committed Apr 25, 2023
1 parent 6d3da77 commit a4bfa92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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
]
}

0 comments on commit a4bfa92

Please sign in to comment.