github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/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 ## Argument Reference 32 33 The following arguments are supported: 34 35 * `slb_id` - (Required) The ID of the SLB.. 36 * `instances` - (Required) A list of instance ids to added backend server in the SLB. If dettachment instances then this value set []. 37 38 ## Attributes Reference 39 40 The following attributes are exported: 41 42 * `backend_servers` - The backend servers of the load balancer.