Check whether S3 bucket versioning is enabled as per the high severity benchmark 'Booting Up: Things to Do First'.
Rule | S3 bucket versioning should be enabled |
Framework | CISA-cyber-essentials |
Severity | ✔ High |
Rule Description
S3 bucket versioning should be enabled for CISA-cyber-essentials. S3 bucket versioning allows you to preserve multiple versions of an object in your bucket. Enabling versioning provides additional protection against accidental deletion, overwrites, and malware attacks. It provides an easy way to recover from unintended changes or errors in your application.
Troubleshooting Steps
Necessary Code
There are no specific codes required for enabling S3 bucket versioning. It can be done through the AWS Management Console or the AWS CLI.
Step-by-Step Guide
Follow the below steps to enable S3 bucket versioning:
AWS Management Console
AWS CLI
aws s3api put-bucket-versioning --bucket CISA-cyber-essentials --versioning-configuration Status=Enabled
aws s3api get-bucket-versioning --bucket CISA-cyber-essentials
The output of the above command should show that versioning is enabled for the specified bucket.
By following these steps, you will enable S3 bucket versioning for CISA-cyber-essentials, ensuring better data protection and recovery capabilities.