Skip to content

Commit

Permalink
default false
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpruthi committed Jul 4, 2024
1 parent 21fb158 commit f9982d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -361,23 +361,28 @@ module "wandb" {

# proxy-only subnet used by internal load balancer
resource "google_compute_subnetwork" "proxy" {
count = var.create_private_link ? 1 : 0
name = "${var.namespace}-proxy-subnet"
ip_cidr_range = var.ilb_proxynetwork_cidr
purpose = "REGIONAL_MANAGED_PROXY"
role = "ACTIVE"
network = local.network.id
timeouts {
delete = "2m"
}
}

## This ensures that the private link resource does not fail during the provisioning process.
module "sleep" {
count = var.create_private_link ? 1 : 0
source = "matti/resource/shell"
version = "1.5.0"

environment = {
TIME = timestamp()
}
command = "sleep 450; date +%s"
command_when_destroy = "sleep 450"
command = "sleep 400; date +%s"
command_when_destroy = "sleep 400"
trigger = timestamp()
working_dir = "/tmp"

Expand Down

0 comments on commit f9982d2

Please sign in to comment.