Skip to content

Commit

Permalink
added timesleep
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpruthi committed May 31, 2024
1 parent 08aa2fe commit f790e96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ resource "google_compute_subnetwork" "proxy" {
resource "time_sleep" "wait_seconds" {
count = var.create_private_link ? 1 : 0
triggers = {
always_run = "${timestamp()}"
always_run = timestamp()
}
depends_on = [module.wandb]
create_duration = "400s"
depends_on = [module.wandb]
create_duration = "400s"
}

## In order to support private link required min version 0.13.0 of operator-wandb chart
Expand All @@ -320,5 +320,5 @@ module "private_link" {
allowed_projects = var.allowed_projects
psc_subnetwork = var.psc_subnetwork_cidr
proxynetwork_cidr = var.ilb_proxynetwork_cidr
depends_on = [google_compute_subnetwork.proxy,time_sleep.wait_seconds]
}
depends_on = [google_compute_subnetwork.proxy, time_sleep.wait_seconds]
}
3 changes: 3 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
terraform {
required_version = "~> 1.0"
required_providers {
time_sleep = {
version = "~> 0.10.0"
}
google = {
source = "hashicorp/google"
version = "~> 4.82"
Expand Down

0 comments on commit f790e96

Please sign in to comment.