Provides a ESS schedule resource.
resource "alicloud_ess_scaling_group" "scaling" {
# Other parameters...
}
resource "alicloud_ess_scaling_configuration" "config" {
# Other parameters...
}
resource "alicloud_ess_scaling_rule" "rule" {
# Other parameters...
}
resource "alicloud_ess_schedule" "schedule" {
scheduled_action = "${alicloud_ess_scaling_rule.rule.ari}"
launch_time = "2017-04-29T07:30Z"
scheduled_task_name = "sg-schedule"
}
The following arguments are supported:
scheduled_action - (Required) Operations performed when the scheduled task is triggered. Fill in the unique identifier of the scaling rule. launch_time - (Required) Operations performed when the scheduled task is triggered. Fill in the unique identifier of the scaling rule. scheduled_task_name - (Optional) Display name of the scheduled task, which must be 2-40 characters (English or Chinese) long. description - (Optional) Description of the scheduled task, which is 2-200 characters (English or Chinese) long. launch_expiration_time - (Optional) Time period within which the failed scheduled task is retried. The default value is 600s. Value range: [0, 21600] recurrence_type - (Optional) Type of the scheduled task to be repeated. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified. Optional values: recurrence_value - (Optional) Value of the scheduled task to be repeated. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified. recurrence_end_time - (Optional) End time of the scheduled task to be repeated. The date format follows the ISO8601 standard and uses UTC time. It is in the format of YYYY-MM-DDThh:mmZ. A time point 90 days after creation or modification cannot be entered. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified.task_enabled - (Optional) Whether to enable the scheduled task. The default value is true. The following attributes are exported:
id - The schedule task ID. scheduled_action - The action of schedule task. launch_time - The time of schedule task be triggered. scheduled_task_name - The name of schedule task. description - The description of schedule task. task_enabled - Wether the task is enabled. ESS schedule task can be imported using the id, e.g.
$ terraform import alicloud_ess_schedule.example abc123456
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/ess_schedule.html