alicloud_snapshot_policy

Provides an ECS snapshot policy resource.

For information about snapshot policy and how to use it, see Snapshot.

Example Usage

resource "alicloud_snapshot_policy" "sp" {
  name            = "tf-testAcc-sp"
  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:

Import

Snapshot can be imported using the id, e.g.

$ terraform import alicloud_snapshot_policy.snapshot sp-abc1234567890000