github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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 Registers a node or service with the Consul Catalog. Currently, defining health checks is not supported. 7 --- 8 9 # consul_catalog_entry 10 11 Registers a node or service with the [Consul Catalog](https://www.consul.io/docs/agent/http/catalog.html#catalog_register). 12 Currently, defining health checks is not supported. 13 14 ## Example Usage 15 16 ```hcl 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 * `datacenter` - (Optional) The datacenter to use. This overrides the 45 datacenter in the provider setup and the agent's default datacenter. 46 47 * `token` - (Optional) ACL token. 48 49 The `service` block supports the following: 50 51 * `address` - (Optional) The address of the service. Defaults to the 52 node address. 53 * `id` - (Optional) The ID of the service. Defaults to the `name`. 54 * `name` - (Required) The name of the service 55 * `port` - (Optional) The port of the service. 56 * `tags` - (Optional) A list of values that are opaque to Consul, 57 but can be used to distinguish between services or nodes. 58 59 ## Attributes Reference 60 61 The following attributes are exported: 62 63 * `address` - The address of the service. 64 * `node` - The ID of the service, defaults to the value of `name`.