- Newest
- Most votes
- Most comments
Once you enable versioning on s3 bucket, you can't disable s3 versioning. It can only be suspended.
What does it mean by suspended versioning:
You can add objects to versioning-suspended buckets in Amazon S3 to create the object with a null version ID or overwrite any object version with a matching version ID. After you suspend versioning on a bucket, Amazon S3 automatically adds a null version ID to every subsequent object stored thereafter (using PUT, POST, or COPY) in that bucket.
Refer second document in the reference section for more details about, how adding objects work in a suspended versioning bucket.
Reference:
Working with objects in a versioning-suspended bucket
Adding objects to versioning-suspended buckets
Hope it helps.
Comment here if you have additional questions, happy to help.
Abhishek
Hello.
Even if a past version overwrites a remaining object, the past version will not be deleted.
Therefore, you need to completely delete the deletion marker and past versions before uploading.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/AddingObjectstoVersionSuspendedBuckets.html
Another option to reduce the storage capacity of a bucket with versioning enabled is to set a lifecycle rule to delete old versions.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html
Relevant content
- Accepted Answerasked a year ago
- asked 10 months ago
- AWS OFFICIALUpdated 4 days ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 6 months ago
I never knowingly enabled versioning, so I would have thought versioning would have been disabled by default and should remain disabled/suspended if you don't enable it or you suspend it.