Dear terraform community,
I am learning terraform and nomad, I have a nomad job which I can deploy in my nomad cluster using the nomad cli.
I am now trying to deploy the same nomad job using terraform. The main.tf file looks like:
provider "nomad" {
address = "http://...:4646"
}
resource "nomad_job" "slurm_ctl" {
jobspec = file("${path.module}/slurm-ctl.hcl")
}
Teraform validate apporoves the file, however terraform apply fails
❯ terraform apply
╷
│ Error: error parsing jobspec: error parsing: At 2:13: Unknown token: 2:13 IDENT string
│
│ with nomad_job.slurm_ctl,
│ on main.tf line 5, in resource "nomad_job" "slurm_ctl":
│ 5: resource "nomad_job" "slurm_ctl" {
│
╵
my terraform version is
❯ terraform --version
Terraform v1.4.4
on linux_amd64
+ provider registry.terraform.io/hashicorp/nomad v1.4.19
Could someone please give me a hint of where the issue is?
thank you very much