consul_catalog_entry

Registers a node or service with the Consul Catalog. Currently, defining health checks is not supported.

Example Usage

resource "consul_catalog_entry" "app" {
  address = "192.168.10.10"
  node    = "foobar"

  service = {
    address = "127.0.0.1"
    id      = "redis1"
    name    = "redis"
    port    = 8000
    tags    = ["master", "v1"]
  }
}

Argument Reference

The following arguments are supported:

The service block supports the following:

Attributes Reference

The following attributes are exported: