Implement necessary measures to enable S3 bucket versioning for enhanced data protection.
Rule | S3 bucket versioning should be enabled |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ High |
Rule Description
This rule states that S3 bucket versioning must be enabled for compliance with GxP 21 CFR Part 11 regulations. GxP (Good Practice) guidelines and 21 CFR Part 11 regulations ensure that electronic records and signatures in the pharmaceutical and life sciences industry are trustworthy, reliable, and equivalent to paper records.
Enabling versioning in an S3 bucket helps track and retain multiple versions of an object stored in the bucket. This ensures data integrity, auditability, and compliance with industry regulations. In case of accidental deletion or modification, previous versions can be restored, preventing data loss or unauthorized changes.
Troubleshooting Steps (if required)
If versioning is not enabled for an S3 bucket, you can perform the following troubleshooting steps:
Necessary Codes (if required)
To enable versioning for an S3 bucket, you can use the following AWS CLI command:
aws s3api put-bucket-versioning --bucket <bucket_name> --versioning-configuration Status=Enabled
Replace
<bucket_name>
with the actual name of the S3 bucket you want to enable versioning for.Step-by-Step Guide for Remediation
To enable versioning for an S3 bucket, follow these steps:
Access the AWS Management Console and navigate to the S3 service.
Locate the bucket for which you want to enable versioning and select it.
Click on the "Properties" tab in the top-right corner of the screen.
In the "Properties" tab, locate the "Object Versioning" section.
Click on the "Edit" button next to "Object Versioning" to modify the settings.
Select the "Enable" option to enable versioning for the bucket.
Click "Save" to apply the changes.
Verify that versioning is enabled by checking the bucket properties or using the AWS CLI command:
aws s3api get-bucket-versioning --bucket <bucket_name>
Replace
<bucket_name>
with the name of your S3 bucket.If versioning is enabled, the command will return the configuration details with
"Status": "Enabled"
.By following these steps, you have successfully enabled versioning for the S3 bucket, ensuring compliance with GxP 21 CFR Part 11 regulations.