consul_key Function
Consul keys can be used within your template using the
consul_key
function.
You can either use this function in a locals block or directly inline where you want to use the value.
This will load the key stored at the path myservice/version
from consul.
The configuration for consul (address, tokens, ...) must be specified as environment variables, as specified in the Documentation.