Consul noob trying to access KV store

I have been following this demo on AWS: https://containersonaws.com/architecture/consul-connect-service-mesh/

Basically, there’s a host with the Consul agent container and then a service container with the Consul connect proxy. The Consul server is just a standalone EC2 instance.

I want the service container to pull some configuration values from the KV store however, curl fails to connect to localhost port 8500. Can the service container use the connect proxy or agent to access the Consul server to get the KV store? Or what is the most efficient way for the service container to access the KV store?