alicloud_ecs_auto_snapshot_policy

Provides a ECS Auto Snapshot Policy resource.

For information about ECS Auto Snapshot Policy and how to use it, see What is Auto Snapshot Policy.

Example Usage

Basic Usage

resource "alicloud_ecs_auto_snapshot_policy" "example" {
  name            = "tf-testAcc"
  repeat_weekdays = ["1", "2", "3"]
  retention_days  = -1
  time_points     = ["1", "22", "23"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

ECS Auto Snapshot Policy can be imported using the id, e.g.

$ terraform import alicloud_ecs_auto_snapshot_policy.example <id>