github.com/greysond/terraform@v0.8.5-0.20170124173113-439b5507bbe9/website/source/docs/providers/alicloud/r/slb_attachment.html.markdown (about)

     1  ---
     2  layout: "alicloud"
     3  page_title: "Alicloud: alicloud_slb_attachment"
     4  sidebar_current: "docs-alicloud-resource-slb-attachment"
     5  description: |-
     6    Provides an Application Load Banlancer Attachment resource.
     7  ---
     8  
     9  # alicloud\_slb\_attachment
    10  
    11  Provides an Application Load Balancer Attachment resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  # Create a new load balancer attachment for classic
    17  resource "alicloud_slb" "default" {
    18  	# Other parameters...
    19  }
    20  
    21  resource "alicloud_instance" "default" {
    22  	# Other parameters...
    23  }
    24  
    25  resource "alicloud_slb_attachment" "default" {
    26  	slb_id = "${alicloud_slb.default.id}"
    27  	instances = ["${alicloud_instance.default.id}"]
    28  }
    29  
    30  ```
    31  
    32  ## Argument Reference
    33  
    34  The following arguments are supported:
    35  
    36  * `slb_id` - (Required) The ID of the SLB..
    37  * `instances` - (Required) A list of instance ids to added backend server in the SLB. If dettachment instances then this value set [].
    38  
    39  ## Attributes Reference
    40  
    41  The following attributes are exported:
    42  
    43  * `backend_servers` - The backend servers of the load balancer.