alicloud_snapshot

Provides an ECS snapshot resource.

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

Example Usage

resource "alicloud_snapshot" "snapshot" {
  disk_id     = alicloud_disk_attachment.instance-attachment.disk_id
  name        = "test-snapshot"
  description = "this snapshot is created for testing"
  tags = {
    version = "1.2"
  }
}

Argument Reference

The following arguments are supported:

Timeouts

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

Attributes Reference

The following attributes are exported:

Import

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

$ terraform import alicloud_snapshot.snapshot s-abc1234567890000