External variables

Hi there, I am looking to user some extra external variables to write into my nomad job with a raw_exec driver. I saw that this is possible using the -var flag in the nomad job run command. How would I go about using these variables in the job itself. How can I access these variables?


Define the variable in the job file and then use var.foo to call it.