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
| fastSnapshotRestoreAvailabilityZones | Comma separated list of availability zones |
5
-
| outpostArn | Arn of the outpost you wish to have the snapshot saved to |
5
+
| outpostArn | Arn of the outpost you wish to have the snapshot saved to |
6
+
| lockMode | Lock mode (governance/compliance) |
7
+
| lockDuration | Lock duration in days |
8
+
| lockExpirationDate | Lock expiration date (RFC3339 format) |
9
+
| lockCoolOffPeriod | 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 supports [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
+
lockMode: "governance"
65
+
lockDuration: "7"
66
+
```
67
+
68
+
**Example - Lock in Compliance Mode with Expiration Date and Cool Off Period**
69
+
```yaml
70
+
apiVersion: snapshot.storage.k8s.io/v1
71
+
kind: VolumeSnapshotClass
72
+
metadata:
73
+
name: csi-aws-vsc-compliance
74
+
driver: ebs.csi.aws.com
75
+
deletionPolicy: Delete
76
+
parameters:
77
+
lockMode: "compliance"
78
+
lockExpirationDate: "2030-12-31T23:59:59Z"
79
+
lockCoolOffPeriod: "24"
80
+
```
81
+
82
+
## Failure Mode
83
+
84
+
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