github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/consul/r/agent_service.html.markdown (about)

     1  ---
     2  layout: "consul"
     3  page_title: "Consul: consul_agent_service"
     4  sidebar_current: "docs-consul-resource-agent-service"
     5  description: |-
     6    Provides access to Agent Service data in Consul. This can be used to define a service associated with a particular agent. Currently, defining health checks for an agent service is not supported.
     7  ---
     8  
     9  # consul_agent_service
    10  
    11  Provides access to the agent service data in Consul. This can be used to
    12  define a service associated with a particular agent. Currently, defining
    13  health checks for an agent service is not supported.
    14  
    15  ## Example Usage
    16  
    17  ```hcl
    18  resource "consul_agent_service" "app" {
    19    address = "www.google.com"
    20    name    = "google"
    21    port    = 80
    22    tags    = ["tag0", "tag1"]
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `address` - (Optional) The address of the service. Defaults to the
    31    address of the agent.
    32  
    33  * `name` - (Required) The name of the service.
    34  
    35  * `port` - (Optional) The port of the service.
    36  
    37  * `tags` - (Optional) A list of values that are opaque to Consul,
    38    but can be used to distinguish between services or nodes.
    39  
    40  ## Attributes Reference
    41  
    42  The following attributes are exported:
    43  
    44  * `address` - The address of the service.
    45  * `id` - The ID of the service, defaults to the value of `name`.
    46  * `name` - The name of the service.
    47  * `port` - The port of the service.
    48  * `tags` - The tags of the service.