Other Articles

S3 Bucket – Enable S3 Bucket Versioning

This check ensures that versioning is enabled for Amazon S3 buckets. S3 versioning helps protect objects from accidental deletion or overwrites by maintaining multiple versions of an object.

Check Details

  • Resource: S3 Bucket
  • Check: Enable S3 bucket versioning
  • Risk: Permanent data loss due to accidental deletion or overwrite

Remediation via AWS Console

  1. Log in to the AWS Management Console and open the Amazon S3 console. Amazon S3 Console
  2. Select the S3 bucket where versioning is not enabled.
  3. Go to the Properties tab. S3 properties tab
  4. Under Bucket Versioning, click Edit.
  5. Select Enable and click Save changes. Enable S3 versioning

Remediation via AWS CLI

  1. Log in to the AWS Management Console and click the CloudShell icon (>_) in the top-right corner. AWS CloudShell
  2. List all S3 buckets to identify the target bucket:
    
    
    aws s3 ls
    
  3. Enable versioning on a specific bucket:
    
    
    aws s3api put-bucket-versioning \
     --bucket <bucket-name> \
     --versioning-configuration Status=Enabled