job "consul-kv-simple-test" { datacenters = ["dc1"] type = "batch" group "test" { count = 1 task "consul-test" { driver = "exec" config { command = "/bin/sh" args = ["-c", "curl -s http://ch4.tailnet-68f9.ts.net:8500/v1/kv/config/dev/cloudflare/token | jq -r '.[0].Value' | base64 -d"] } resources { cpu = 100 memory = 128 } } } }