Files
opentf/website/source/docs/providers/alicloud/r/slb_attachment.html.markdown
demonwy 69ec7e12ac provider/alicloud: Add new resource ESS, including scalinggroup scalingconfiguration scalingrule and schedule (#13731)
* add docs

* add new resource ess

* add examples

* update aliyun go

* merge master

* fix ci
2017-04-18 15:18:57 +03:00

1.0 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
alicloud Alicloud: alicloud_slb_attachment docs-alicloud-resource-slb-attachment Provides an Application Load Banlancer Attachment resource.

alicloud_slb_attachment

Provides an Application Load Balancer Attachment resource.

Example Usage

# Create a new load balancer attachment for classic
resource "alicloud_slb" "default" {
  # Other parameters...
}

resource "alicloud_instance" "default" {
  # Other parameters...
}

resource "alicloud_slb_attachment" "default" {
  slb_id    = "${alicloud_slb.default.id}"
  instances = ["${alicloud_instance.default.id}"]
}

Argument Reference

The following arguments are supported:

  • slb_id - (Required) The ID of the SLB..
  • instances - (Required) A list of instance ids to added backend server in the SLB. If dettachment instances then this value set [].

Attributes Reference

The following attributes are exported:

  • backend_servers - The backend servers of the load balancer.