How to configure versioning for an S3 bucket?

To configure versioning for an S3 bucket, follow these steps:

  1. Sign in to the AWS Management Console and navigate to the S3 service.

  2. Select the bucket for which you want to enable versioning.

  3. Click on the "Properties" tab in the bucket's details.

  4. Click on the "Versioning" option.

  5. Click on the "Enable versioning" button.

  6. Click "Save" to apply the changes.

Once versioning is enabled for the bucket, all future modifications to objects in the bucket will create a new version of the object while retaining the previous versions. This allows you to easily recover previous versions of objects in case of accidental deletion or modification.