How To Enable S3 Bucket Versioning

In Amazon S3, versioning allows you to keep multiple versions of an object within the same bucket. By using S3 versioning you are able to preserve, retrieve and restore all existing versions of the objects stored in the buckets. Once you’ve enabled versioning for a bucket, Amazon S3 will store all versions of an object when it receives multiple write requests for the same object simultaneously.

In this short tutorial we show you how to enable versioning of an s3 bucket.

Enable s3 bucket versioning from s3 console

Sign in to AWS management console and navigate to S3 service section. Note that the bucket owner and all authorized users can enable versioning, hence use an account with adequate credentials.

Go through the Buckets list, or search for the name of the bucket that you want to enable versioning for.

Then go Properties > Bucket Versioning >  Edit.

Choose Enable, and then save the changes.

Enable s3 bucket versioning using AWS CLI

If you have AWS CLI configured, enable versioning on an S3 bucket using the following commands:

aws s3api put-bucket-versioning --bucket <bucket-name> --versioning-configuration Status=Enabled

The command doesn’t have any output, but the confirmation can be done from s3 web console under bucket properties section.

The versioning can be turned off by changing the versioning flag to “Suspend” from S3 web console or AWS CLI. For any assistance with AWS tasks and projects, don’t hesitate to contact us.

Your IT Journey Starts Here!

Ready to level up your IT skills? Our new eLearning platform is coming soon to help you master the latest technologies.

Be the first to know when we launch! Join our waitlist now.

Join our Linux and open source community. Subscribe to our newsletter for tips, tricks, and collaboration opportunities!

Recent Post

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Post

Nextcloud is a free and open-source syncing and file sharing server. It is self-hosted and allows companies to have a […]

What is Tokei and how is it useful to developers? Tokei is a very powerful program that is used to […]

The aaPanel is a free and open-source control panel used to manage hosting services such as websites, databases, Docker containers, […]

Let's Connect

Unleash the full potential of your business with CloudSpinx. Our expert solutions specialists are standing by to answer your questions and tailor a plan that perfectly aligns with your unique needs.
You will get a response from our solutions specialist within 12 hours
We understand emergencies can be stressful. For immediate assistance, chat with us now

Contact CloudSpinx today!

Download CloudSpinx Profile

Discover the full spectrum of our expertise and services by downloading our detailed Company Profile. Simply enter your first name, last name, and email address.