Hi,
I try to configure job name from variables but it does not work. Here is an example:
My code is like this:
locals {
job_name = “iprojekt-test”
}job “${local.job_name}-test” {
datacenters = [“dc1”]
type = “service”
…
and when I try to run this job I receive this error:
Error getting job struct: Error parsing job file from jobs/nginx-demo.nomad:
iprojekt.nomad:29,6-8: Invalid string literal; Template sequences are not allowed in this string. To include a literal “$”, double it (as “$$”) to escape it.
Here in documentation Local Values - HCL Configuration Language | Nomad | HashiCorp Developer is the same syntax, does anyone have an idea what I do wrong?