okustera_storage_snapshot (Resource)
The okustera_storage_snapshot resource creates an instantaneous copy-on-write snapshot of a Cinder volume in Ceph RBD.
Example Usage
resource "okustera_storage_volume" "app_data" {
name = "app-data"
size_gb = 50
}
resource "okustera_storage_snapshot" "backup_snap" {
name = "app-data-snapshot-pre-upgrade"
volume_id = okustera_storage_volume.app_data.id
description = "Point-in-time snapshot taken before application upgrade"
}
Schema
Required
name(String) Name of the snapshot.volume_id(String) Source volume UUID to snapshot. Forces new resource if changed.
Optional
description(String) Snapshot description.
Read-Only Attributes
id(String) Snapshot UUID.size_gb(Number) Size in Gigabytes.status(String) Snapshot status (e.g.available,creating).created_at(String) Creation timestamp.
Import
Existing snapshots can be imported using their UUID:
terraform import okustera_storage_snapshot.backup_snap <snapshot_uuid>