github.com/simonswine/terraform@v0.9.0-beta2/website/source/docs/providers/consul/r/catalog_entry.html.markdown (about)

     1  ---
     2  layout: "consul"
     3  page_title: "Consul: consul_catalog_entry"
     4  sidebar_current: "docs-consul-resource-catalog-entry"
     5  description: |-
     6    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.
     7  ---
     8  
     9  # consul\_catalog\_entry
    10  
    11  Provides access to Catalog data in Consul. This can be used to define a
    12  node or a service. Currently, defining health checks is not supported.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "consul_catalog_entry" "app" {
    18    address = "192.168.10.10"
    19    node    = "foobar"
    20  
    21    service = {
    22      address = "127.0.0.1"
    23      id      = "redis1"
    24      name    = "redis"
    25      port    = 8000
    26      tags    = ["master", "v1"]
    27    }
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `address` - (Required) The address of the node being added to,
    36    or referenced in the catalog.
    37  
    38  * `node` - (Required) The name of the node being added to, or
    39    referenced in the catalog.
    40  
    41  * `service` - (Optional) A service to optionally associated with
    42    the node. Supported values are documented below.
    43  
    44  The `service` block supports the following:
    45  
    46  * `address` - (Optional) The address of the service. Defaults to the
    47    node address.
    48  * `id` - (Optional) The ID of the service. Defaults to the `name`.
    49  * `name` - (Required) The name of the service
    50  * `port` - (Optional) The port of the service.
    51  * `tags` - (Optional) A list of values that are opaque to Consul,
    52    but can be used to distinguish between services or nodes.
    53  
    54  ## Attributes Reference
    55  
    56  The following attributes are exported:
    57  
    58  * `address` - The address of the service.
    59  * `node` - The ID of the service, defaults to the value of `name`.