From 53882d7c9c835d7dbe59d96933677ee44fc6bdce Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 22 Apr 2024 21:34:35 +0200 Subject: [PATCH] feat(job): add ability to pass job either as filepath or directly as string --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index a4217be..b0ddff4 100644 --- a/main.tf +++ b/main.tf @@ -8,7 +8,7 @@ resource "nomad_job" "this" { consul_intention.this ] - jobspec = file(each.value) + jobspec = try(file(each.value), each.value) purge_on_destroy = true hcl2 { allow_fs = true