From 3804662ecc3bb34bc0dd81d69add525a7cb830ef Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Tue, 22 Aug 2023 18:47:37 +0200 Subject: [PATCH] replace job dependencies --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 8b9090b..c9f42a8 100644 --- a/main.tf +++ b/main.tf @@ -2,13 +2,13 @@ resource "nomad_job" "this" { for_each = var.jobs depends_on = [ - nomad_external_volume.this, + nomad_csi_volume.this, + nomad_csi_volume_registration.this, consul_key_prefix.this, - # consul_config_entry.this consul_intention.this ] - jobspec = file("${each.value}") + jobspec = file(each.value) purge_on_destroy = true hcl2 { enabled = true