github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/alicloud-slb/main.tf (about)

     1  resource "alicloud_slb" "instance" {
     2    name = "${var.slb_name}"
     3    internet_charge_type = "${var.internet_charge_type}"
     4    internet = "${var.internet}"
     5  
     6    listener = [
     7      {
     8          "instance_port" = "22"
     9          "lb_port" = "22"
    10          "lb_protocol" = "tcp"
    11          "bandwidth" = "10"
    12          "health_check_type" = "http"
    13          "persistence_timeout" = 3600
    14          "healthy_threshold" = 8
    15          "unhealthy_threshold" = 8
    16          "health_check_timeout" = 8
    17          "health_check_interval" = 5
    18          "health_check_http_code" = "http_2xx,http_3xx"
    19          "health_check_timeout" = 8
    20      },
    21  
    22      {
    23        "instance_port" = "2001"
    24        "lb_port" = "2001"
    25        "lb_protocol" = "udp"
    26        "bandwidth" = "10"
    27        "persistence_timeout" = 3600
    28        "healthy_threshold" = 8
    29        "unhealthy_threshold" = 8
    30        "health_check_timeout" = 8
    31        "health_check_interval" = 4
    32        "health_check_timeout" = 8
    33      },
    34  
    35      {
    36          "instance_port" = "80"
    37          "lb_port" = "80"
    38          "lb_protocol" = "http"
    39          "sticky_session" = "on"
    40          "sticky_session_type" = "server"
    41          "cookie" = "testslblistenercookie"
    42          "cookie_timeout" = 86400
    43          "health_check" = "on"
    44          "health_check_domain" = "$_ip"
    45          "health_check_uri" = "/console"
    46          "health_check_connect_port" = 20
    47          "healthy_threshold" = 8
    48          "unhealthy_threshold" = 8
    49          "health_check_timeout" = 8
    50          "health_check_interval" = 5
    51          "health_check_http_code" = "http_2xx,http_3xx"
    52          "bandwidth" = 10
    53        }]
    54  }