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 apply Error: error parsing job: &errors.errorString{s:"Unexpected response code: 400 (input.hcl:30,25-30: Error in function call; Call to function \"file\" failed: filesystem function disabled.\ninput.hcl:30,25-30: Unsuitable value type; Unsuitable value: value must be known\ninput.hcl:37,23-28: Error in function call; Call to function \"file\" failed: filesystem function disabled.\ninput.hcl:37,23-28: Unsuitable value type; Unsuitable value: value must be known\ninput.hcl:42,23-28: Error in function call; Call to function \"file\" failed: filesystem function disabled.\ninput.hcl:42,23-28: Unsuitable value type; Unsuitable value: value must be known\ninput.hcl:47,23-28: Error in function call; Call to function \"file\" failed: filesystem function disabled.\ninput.hcl:47,23-28: Unsuitable value type; Unsuitable value: value must be known)"}
Steps to Reproduce
terraform apply
Important Factoids
HCL2 Language Support
The text was updated successfully, but these errors were encountered:
@thiagonache updated our jobspec parser to use the HCL2 version from Nomad, and the fix will be available in the next release that will come out soon.
But HCL2 parsing is a bit more complex, so not everything is compatible yet. Your specific case (calling the file HCL2 function in the Nomad jobspec) is unfortunately not covered on #185.
Since the HCL2 spec is quite big, I created a new issue to track this specific functionality (#191).
@spol-ihq your use case should work in the next release 🎉
If there are any other HCL2 related problems please open a new issue.
Thank you all once again 😄
UPDATE: after some testing, it seems like only the file function doesn't work properly. I've updated #191 to reflect this.
Terraform Version
Nomad Version
Provider Configuration
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
1 resource created.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
HCL2 Language Support
The text was updated successfully, but these errors were encountered: