» alicloud_ess_scaling_rules

This data source provides available scaling rule resources.

» Example Usage

data "alicloud_ess_scaling_rules" "scalingrules_ds" {
  scaling_group_id = "scaling_group_id"
  ids              = ["scaling_rule_id1", "scaling_rule_id2"]
  name_regex       = "scaling_rule_name"

output "first_scaling_rule" {
  value = "${data.alicloud_ess_scaling_rules.scalingrules_ds.rules.0.id}"

» Argument Reference

The following arguments are supported:

  • scaling_group_id - (Optional) Scaling group id the scaling rules belong to.
  • type - (Optional) Type of scaling rule.
  • name_regex - (Optional) A regex string to filter resulting scaling rules by name.
  • ids - (Optional) A list of scaling rule 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: