This rule ensures that S3 bucket versioning is enabled to maintain data integrity and security.
Rule | S3 bucket versioning should be enabled |
Framework | NIST 800-53 Revision 5 |
Severity | ✔ High |
Rule Description
This rule requires enabling versioning for Amazon S3 buckets to comply with the security guidelines outlined in the NIST 800-53 Revision 5 publication.
Troubleshooting Steps
Code
There is no specific code required to enable versioning for S3 buckets as it can be done through the AWS Management Console, AWS Command Line Interface (CLI), or AWS SDKs.
Remediation Steps
AWS Management Console
AWS CLI
aws s3api put-bucket-versioning --bucket <bucket-name> --versioning-configuration Status=Enabled
Replace
<bucket-name>
with the name of the bucket you want to enable versioning for.aws s3api get-bucket-versioning --bucket <bucket-name>
AWS SDKs
Refer to the documentation of the specific AWS SDK you are using to enable versioning for S3 buckets programmatically.
Verification Steps
To verify if versioning is enabled for the S3 bucket: