Parse a HCL jobspec and produce the equivalent JSON encoded job.
data "nomad_job_parser" "my_job" {
hcl = file("${path.module}/jobspec.hcl")
canonicalize = false
}
The following attributes are exported:
hcl
(string)
- the HCL definition of the job.canonicalize
(boolean: true)
- flag to enable setting any unset fields to their default values.json
(string)
- the parsed job as JSON string.