Provides a ESS scaling rule resource.
resource "alicloud_ess_scaling_group" "scaling" {
# Other parameters...
}
resource "alicloud_ess_scaling_configuration" "config" {
# Other parameters...
}
resource "alicloud_ess_scaling_rule" "rule" {
scaling_group_id = "${alicloud_ess_scaling_group.scaling.id}"
adjustment_type = "TotalCapacity"
adjustment_value = 2
cooldown = 60
}
The following arguments are supported:
scaling_group_id - (Required) ID of the scaling group of a scaling rule. adjustment_type - (Required) Adjustment mode of a scaling rule. Optional values: adjustment_value - (Required) Adjusted value of a scaling rule. Value range: scaling_rule_name - (Optional) Name shown for the scaling rule, which is a string containing 2 to 40 English or Chinese characters. cooldown - (Optional) Cool-down time of a scaling rule. Value range: [0, 86,400], in seconds. The default value is empty. The following attributes are exported:
id - The scaling rule ID. scaling_group_id - The id of scaling group. ari - Unique identifier of a scaling rule. adjustment_type - Adjustment mode of a scaling rule. adjustment_value - Adjustment value of a scaling rule. scaling_rule_name - Name of a scaling rule. cooldown - Cool-down time of a scaling rule.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/ess_scaling_rule.html