consul_network_area

The consul_network_area resource manages a relationship between servers in two different Consul datacenters.

Unlike Consul's WAN feature, network areas use just the server RPC port for communication, and relationships can be made between independent pairs of datacenters, so not all servers need to be fully connected. This allows for complex topologies among Consul datacenters like hub/spoke and more general trees.

Example Usage

resource "consul_network_area" "dc2" {
    peer_datacenter = "dc2"
    retry_join      = ["1.2.3.4"]
    use_tls         = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported: