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

     1  ---
     2  layout: "oneandone"
     3  page_title: "1&1: oneandone_loadbalancer"
     4  sidebar_current: "docs-oneandone-resource-loadbalancer"
     5  description: |-
     6    Creates and manages 1&1 Load Balancer.
     7  ---
     8  
     9  # oneandone\_server
    10  
    11  Manages a Load Balancer on 1&1
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "oneandone_loadbalancer" "lb" {
    17    name = "test_lb"
    18    method = "ROUND_ROBIN"
    19    persistence = true
    20    persistence_time = 60
    21    health_check_test = "TCP"
    22    health_check_interval = 300
    23    datacenter = "GB"
    24    rules = [
    25      {
    26        protocol = "TCP"
    27        port_balancer = 8080
    28        port_server = 8089
    29        source_ip = "0.0.0.0"
    30      },
    31      {
    32        protocol = "TCP"
    33        port_balancer = 9090
    34        port_server = 9099
    35        source_ip = "0.0.0.0"
    36      }
    37    ]
    38  }
    39  ```
    40  
    41  ## Argument Reference
    42  
    43  The following arguments are supported:
    44  
    45  * `name` - (Required) The name of the load balancer.
    46  * `description` - (Optional) Description for the load balancer
    47  * `method` - (Required)  Balancing procedure Can be `ROUND_ROBIN` or `LEAST_CONNECTIONS`
    48  * `datacenter` - (Optional) Location of desired 1and1 datacenter. Can be `DE`, `GB`, `US` or `ES`
    49  * `persistence` - (Optional) True/false defines whether persistence should be turned on/off
    50  * `persistence_time` - (Optional) Persistence duration in seconds
    51  * `health_check_test` - (Optional) Can be `TCP` or`ICMP`.
    52  * `health_check_test_interval` - (Optional) 
    53  * `health_check_test_path` - (Optional) 
    54  * `health_check_test_parser` - (Optional) 
    55  
    56  Loadbalancer rules (`rules`) support the following
    57  
    58  * `protocol` - (Required)  The protocol for the rule. Allowed values are `TCP`, `UDP`, `TCP/UDP`, `ICMP` and `IPSEC`.
    59  * `port_balancer` - (Required) 
    60  * `port_server` - (Required) 
    61  * `source_ip` - (Required)