Nomad HCL2 Function Examples

I’m just wondering if anyone could share some examples of how to use the new HCL2 functions in Nomad job definitions. The functions are well defined in documentation, but how they might be used within a Nomad job is a bit lacking. My first attempt to use them was within the template stanza, but it appears only Consul Template functions work within template. Just an example of how you might use a function elsewhere in the Nomad job would be really useful info.

Thanks!

Jeff

2 Likes