Object versioning
Object versioning retains separately identifiable revisions of an object under the same key.
In a versioning-enabled S3 general-purpose bucket, a replacement creates a new current version and retains the previous one; a delete without versionId creates a marker. Versions are complete objects, not differential backups. [1] Suspended versioning differs: new writes use null and replace any same-key null version, while non-null versions remain. [5]
Replication: a version-specific source DELETE does not delete the destination version through S3 replication; source and destination histories can diverge. [8]
Relations
- related
- Object storage, Object lock, Conditional write, Backup manifest, Storage immutability, Delete marker, Object version ID
Advantages
- A known version ID identifies which retained revision a recovery process requests. [3]
Limitations
- Versioning alone does not prohibit permanent deletion of a version by an authorized caller. [1]
- For a current delete marker, the documented GET response without versionId is 404 even when older versions remain; authorization failures can differ. [2, 3]
- With versioning suspended, a DELETE without versionId can permanently remove the null-version payload before inserting a null marker. [6]
- Check replication status before deleting a source version. COMPLETED reports replication success, not a restore test or a guarantee against later destination deletion. [9]
Citations
- Amazon S3: How S3 Versioning works
- Amazon S3: Working with delete markers
- Amazon S3 API: GetObject
- Amazon S3: Adding objects to versioning-suspended buckets
- Amazon S3: Deleting objects from versioning-suspended buckets
- Amazon S3: How delete operations affect replication
- Amazon S3: Getting replication status information