» alicloud_ess_scaling_groups

This data source provides available scaling group resources.

» Example Usage

data "alicloud_ess_scaling_groups" "scalinggroups_ds" {
  ids        = ["scaling_group_id1", "scaling_group_id2"]
  name_regex = "scaling_group_name"

output "first_scaling_group" {
  value = "${data.alicloud_ess_scaling_groups.scalinggroups_ds.groups.0.id}"

» Argument Reference

The following arguments are supported:

  • name_regex - (Optional) A regex string to filter resulting scaling groups by name.
  • ids - (Optional) A list of scaling group 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: