## 创建快照服务 ## ``` resource "alicloud_disk" "disk" { availability_zone = alicloud_instance.web[0].availability_zone category = "cloud_ssd" size = 200 count = 1 } resource "alicloud_ecs_auto_snapshot_policy" "policy" { name = "tf-testAcc" repeat_weekdays = [""5"] retention_days = -1 time_points = ["1","12"] } resource "alicloud_ecs_auto_snapshot_policy_attachment" "attachment" { auto_snapshot_policy_id = alicloud_ecs_auto_snapshot_policy.policy.id disk_id = alicloud_disk.disk.id } ```