» alicloud_slb_backend_servers

This data source provides the server load balancer backend servers related to a server load balancer..

» Example Usage

data "alicloud_slb_beckend_servers" "sample_ds" {
  load_balancer_id = "${alicloud_slb.sample_slb.id}"
}

output "first_slb_backend_server_id" {
  value = "${data.alicloud_slb_beckend_servers.sample_ds.backend_servers.0.id}"
}

» Argument Reference

The following arguments are supported:

  • load_balancer_id - ID of the SLB with attachments.
  • ids - (Optional) List of attached ECS instance IDs.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

The following attributes are exported in addition to the arguments listed above: