hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 484 forks source link

Dedicated consul clients when using Vault? #60

Closed prys closed 6 years ago

prys commented 6 years ago

If I understand correctly, this TF script deploys Consul agents in server mode, under a tier of Consul agents running as clients. The architecture shown in https://github.com/hashicorp/terraform-aws-vault implies that Vault talks directly to the Consul server agents - i.e. no Consul client agents. Is that correct?

Just wondering what a Prod architecture would like like, i.e. Vault - Consul Client - Consul Server or Vault - Consul Server?

Much appreciated in advance

brikis98 commented 6 years ago

Each Vault server is running a local Consul Agent in client mode. The Consul Agent is what talks to the Consul Servers. So the full flow is:

Vault -> Local Consul Agent (Client) -> Consul Server

prys commented 6 years ago

understood, thank you.