feat(job): add ability to pass job either as filepath or directly as string

This commit is contained in:
Bertrand Lanson 2024-04-22 21:34:35 +02:00
parent 9203d38647
commit 53882d7c9c

View File

@ -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