FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

consul_catalog_entry

Provides access to Catalog data in Consul. This can be used to define a node or a service. 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:


See the source of this document at Terraform.io