You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform v1.7.5
on linux_amd64
+ provider registry.terraform.io/hashicorp/nomad v2.1.0
Your version of Terraform is out of date! The latest version
is 1.8.1. You can update by downloading from https://www.terraform.io/downloads.html
Nomad Version
1.6.8
Provider Configuration
Which values are you setting in the provider configuration?
data"nomad_job_parser""job" {
hcl=<<-EOJ variable "greeting" { type = string } job "hello" { type = "batch" group "hello" { task "hello" { driver = "raw_exec" config { command = "/bin/echo" args = [var.greeting] } } } } EOJ# Not available:# vars = ...
}
Expected Behavior
Variables should be able to be set when parsing the job.
Actual Behavior
Because variables are not supported when parsing a job, the job fails to parse:
╷
│ Error: error parsing job: api.UnexpectedResponseError{expected:[]int{200}, statusCode:400, statusText:"Bad Request", body:"Failed to parse job: <nil>: Unset variable \"greeting\"; A used variable must be set or have a default value; see https://www.nomadproject.io/docs/job-specification/hcl2/variables for details.", err:error(nil), additional:error(nil)}
│
│ with data.nomad_job_parser.job,
│ on main.tf line 1, in data "nomad_job_parser" "job":
│ 1: data "nomad_job_parser" "job" {
│
╵
The text was updated successfully, but these errors were encountered:
Terraform Version
Nomad Version
1.6.8
Provider Configuration
Which values are you setting in the provider configuration?
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Variables should be able to be set when parsing the job.
Actual Behavior
Because variables are not supported when parsing a job, the job fails to parse:
The text was updated successfully, but these errors were encountered: