Connecting to consul in the sample at hashicorp/terraform-google-nomad?

Hi,

I’ve been playing with the repository over at hashicorp/terraform-google-nomad - but it’s unclear to me how I’m supposed to connect the consul CLI to the GCP cluster?

I can connect the nomad CLI from my local machine by exporting NOMAD_TOKEN as an environment variable, but consul members always returns nothing.

Hi @crankycoder,

consul members returning nothing sounds like you haven’t passed a Token. If ACL’s are enabled on your Consul cluster, just like how you did for Nomad you can pass the token for Consul client using CONSUL_HTTP_TOKEN environment variable or by passing it with -token argument to the Consul CLI.