consul_service
A high-level resource for creating a Service in Consul. Currently, defining health checks for a service is not supported.
Example Usage
resource "consul_service" "google" {
address = "www.google.com"
name = "google"
port = 80
tags = ["tag0", "tag1"]
}
Argument Reference
The following arguments are supported:
-
address
- (Optional) The address of the service. Defaults to the address of the agent. -
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.
Attributes Reference
The following attributes are exported:
address
- The address of the service.id
- The id of the service, defaults to the value ofname
.name
- The name of the service.port
- The port of the service.tags
- The tags of the service.
See the source of this document at Terraform.io