alicloud_slbs

This data source provides the server load balancers of the current Alibaba Cloud user.

Example Usage

resource "alicloud_slb" "default" {
  name = "sample_slb"
}

data "alicloud_slbs" "slbs_ds" {
  name_regex = "sample_slb"
}

output "first_slb_id" {
  value = data.alicloud_slbs.slbs_ds.slbs[0].id
}

Argument Reference

The following arguments are supported:

  data "alicloud_slbs" "taggedInstances" {
    tags = {
      tagKey1 = "tagValue1",
      tagKey2 = "tagValue2"
    }
  }

Attributes Reference

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