github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/alicloud/r/ess_scaling_rule.html.markdown (about) 1 --- 2 layout: "alicloud" 3 page_title: "Alicloud: alicloud_ess_scaling_rule" 4 sidebar_current: "docs-alicloud-resource-ess-scaling-rule" 5 description: |- 6 Provides a ESS scaling rule resource. 7 --- 8 9 # alicloud\_ess\_scaling\_rule 10 11 Provides a ESS scaling rule resource. 12 13 ## Example Usage 14 15 ``` 16 resource "alicloud_ess_scaling_group" "scaling" { 17 # Other parameters... 18 } 19 20 resource "alicloud_ess_scaling_configuration" "config" { 21 # Other parameters... 22 } 23 24 resource "alicloud_ess_scaling_rule" "rule" { 25 scaling_group_id = "${alicloud_ess_scaling_group.scaling.id}" 26 adjustment_type = "TotalCapacity" 27 adjustment_value = 2 28 cooldown = 60 29 } 30 ``` 31 32 ## Argument Reference 33 34 The following arguments are supported: 35 36 * `scaling_group_id` - (Required) ID of the scaling group of a scaling rule. 37 * `adjustment_type` - (Required) Adjustment mode of a scaling rule. Optional values: 38 - QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances. 39 - PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances. 40 - TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value. 41 * `adjustment_value` - (Required) Adjusted value of a scaling rule. Value range: 42 - QuantityChangeInCapacity:(0, 100] U (-100, 0] 43 - PercentChangeInCapacity:[0, 10000] U [-10000, 0] 44 - TotalCapacity:[0, 100] 45 * `scaling_rule_name` - (Optional) Name shown for the scaling rule, which is a string containing 2 to 40 English or Chinese characters. 46 * `cooldown` - (Optional) Cool-down time of a scaling rule. Value range: [0, 86,400], in seconds. The default value is empty. 47 48 49 ## Attributes Reference 50 51 The following attributes are exported: 52 53 * `id` - The scaling rule ID. 54 * `scaling_group_id` - The id of scaling group. 55 * `ari` - Unique identifier of a scaling rule. 56 * `adjustment_type` - Adjustment mode of a scaling rule. 57 * `adjustment_value` - Adjustment value of a scaling rule. 58 * `scaling_rule_name` - Name of a scaling rule. 59 * `cooldown` - Cool-down time of a scaling rule.