github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/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 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.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "consul_agent_service" "app" {
    17      address = "www.google.com"
    18      name = "google"
    19      port = 80
    20      tags = ["tag0", "tag1"]
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `address` - (Optional) The address of the service. Defaults to the
    29    address of the agent.
    30  
    31  * `name` - (Required) The name of the service.
    32  
    33  * `port` - (Optional) The port of the service.
    34  
    35  * `tags` - (Optional) A list of values that are opaque to Consul,
    36    but can be used to distinguish between services or nodes.
    37    
    38  
    39  ## Attributes Reference
    40  
    41  The following attributes are exported:
    42  
    43  * `address` - The address of the service.
    44  * `id` - The id of the service, defaults to the value of `name`.
    45  * `name` - The name of the service.
    46  * `port` - The port of the service.
    47  * `tags` - The tags of the service.