The
consul_catalog_entry
resource has been deprecated in version 2.0.0 of the provider and will be removed in a future release. Please read the upgrade guide for more information.
Registers a node or service with the Consul Catalog. Currently, defining health checks is not supported.
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"] } }
The following arguments are supported:
address
- (Required) The address of the node being added to, or referenced in the catalog.
node
- (Required) The name of the node being added to, or referenced in the catalog.
service
- (Optional) A service to optionally associated with the node. Supported values are documented below.
datacenter
- (Optional) The datacenter to use. This overrides the datacenter in the provider setup and the agent's default datacenter.
token
- (Optional) ACL token.
The service
block supports the following:
address
- (Optional) The address of the service. Defaults to the node address. id
- (Optional) The ID of the service. Defaults to the name
. name
- (Required) The name of the service port
- (Optional) The port of the service. tags
- (Optional) A list of values that are opaque to Consul, but can be used to distinguish between services or nodes. The following attributes are exported:
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/consul/r/catalog_entry.html