Support Documents
No data found.

How to enable versioning Amazon S3

Lab Details

  1. This lab walks you through the steps on how to enables versioning on an AWS S3 Bucket. Versioning allows you to keep multiple versions of an object in one bucket.

  2. Duration: 30 minutes

  3. AWS Region: US East (N. Virginia) us-east-1


What is Versioning?

  1. Versioning is a means for keeping multiple variants of the same object in the bucket.

  2. Versioning is used to preserve, retrieve, and restore every version of every object stored in an S3 bucket.

  3. Versioning is done at the S3 Bucket level.

  4. Versioning can be enabled from the AWS Console / SDKs / API.

  5. Versioning, once enabled, cannot be completely disabled.

  6. The alternative to disabling versioning is placing the bucket in a "versioning-suspended" state.

  7. A drawback of having multiple versions of an object is you are billed multiple times (since the objects are getting stored in S3 each time).

  8. In order to avoid having multiple versions of the same object, S3 has a feature called Lifecycle  Management. This allows us to decide on what to do when multiple versions of an object are piling up.

  9. One advantage of versioning is, we can provide permissions on versioned objects i.e., we can define which version of an object is public and which one is private.

Architecture Diagram

Task Details

  1. Log in to the AWS Management Console.

  2. Create an S3 bucket.

  3. Enable versioning on the S3 bucket.

  4. Upload an object and make the bucket public.

  5. Upload different versions of the file.

  6. Test the versioning of the object.

  7. Validation of the lab.