Amazon S3 Versioning is a feature that allows multiple versions of an object to exist within a bucket. This is useful for recovering overwritten files, restoring deleted objects, and tracking changes. In this guide, we'll explore how to enable versioning, update files, restore previous versions, and manage delete markers.
To enable versioning on an S3 bucket:
✅ Effect: Once enabled, any file that is overwritten or deleted will retain previous versions instead of being permanently removed.
Now that versioning is enabled, let's upload and modify files.
index.html (or any file) to your bucket.index.html locally (e.g., change "I love coffee" → "I REALLY love coffee").index.html to the S3 bucket.🚀 Outcome: