Object lock
An object lock enforces retention restrictions on a specified object version through a retention policy or hold.
S3 requires versioning; enabling Object Lock and protecting a particular version are distinct configuration steps. [1] Its retention API distinguishes GOVERNANCE and COMPLIANCE and includes event-hold settings for variable retention; do not assume every retention date was fixed at upload. [2]
Bucket defaults assign retention to new versions rather than rewriting existing ones. Inspect the intended version's own retention metadata; bucket configuration alone does not demonstrate its protection. [6] [7]
Relations
- related
- Object versioning, Legal hold (storage), Storage immutability, WORM storage, Restore test, Default object retention (S3)
Advantages
- A protected version survives a new upload under the same key; protection is version-scoped. [3]
Limitations
- Governance bypass requires permission and an explicit request; it does not clear a legal hold. [4]
- For S3 variable retention, an Inventory report reflects its generation time; query GetObjectRetention for current metadata instead of treating the report as live state. [4]
- Neither retained bytes nor a lock label proves that encryption keys remain usable. [4]
Citations
- Amazon S3: Configuring S3 Object Lock
- Amazon S3 API: PutObjectRetention
- Amazon S3: Locking objects with Object Lock
- Amazon S3: Object Lock considerations
- AWS Storage Blog: Applying Amazon S3 Object Lock at scale for petabytes of existing data
- Amazon S3 API: GetObjectRetention