You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| snapshotLockExpirationDate | Lock expiration date (RFC3339 format) |
9
+
| snapshotLockCoolOffPeriod | Cool-off period in hours (compliance mode only) |
6
10
7
11
The AWS EBS CSI Driver supports [tagging](tagging.md) through `VolumeSnapshotClass.parameters` (in v1.6.0 and later).
8
12
## Prerequisites
@@ -44,6 +48,41 @@ parameters:
44
48
45
49
The driver will attempt to check if the availability zones provided are supported for fast snapshot restore before attempting to create the snapshot. If the `EnableFastSnapshotRestores` API call fails, the driver will hard-fail the request and delete the snapshot. This is to ensure that the snapshot is not left in an inconsistent state.
46
50
51
+
# Snapshot Lock
52
+
53
+
The EBS CSI Driver provides support for [EBS Snapshot Lock](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshot-lock.html) via `VolumeSnapshotClass.parameters`. Snapshot locking protects snapshots from accidental or malicious deletion. A locked snapshot can't be deleted.
54
+
55
+
**Example - Lock in Governance Mode with Specified Duration**
56
+
```yaml
57
+
apiVersion: snapshot.storage.k8s.io/v1
58
+
kind: VolumeSnapshotClass
59
+
metadata:
60
+
name: csi-aws-vsc-locked
61
+
driver: ebs.csi.aws.com
62
+
deletionPolicy: Delete
63
+
parameters:
64
+
snapshotLockMode: "governance"
65
+
snapshotLockDuration: "7"
66
+
```
67
+
68
+
**Example - Lock in Compliance Mode with Expiration Date and Cool Off Period**
If the `LockSnapshot` API call fails, the driver will hard-fail the request and delete the snapshot. This ensures that the snapshot is not left in an unlocked state when locking was explicitly requested.
0 commit comments