This rule ensures that S3 bucket versioning is enabled to maintain data integrity and backup capabilities.
Rule | S3 bucket versioning should be enabled |
Framework | GxP EU Annex 11 |
Severity | ✔ High |
Rule Description:
The rule requires that versioning be enabled for S3 buckets in compliance with the GxP EU Annex 11 regulation. Versioning helps in maintaining a complete history of object changes within a bucket, enabling easy recovery of previous versions and ensuring data integrity for GxP (Good x Practice) compliance.
Troubleshooting Steps (if necessary):
If versioning is not enabled for an S3 bucket, follow the steps below to troubleshoot and enable it:
Verify the bucket name: Ensure that you have the correct bucket name for which versioning needs to be enabled.
Check IAM permissions: Make sure that the user or role you are using to perform this action has the necessary permissions to enable versioning on the bucket. They should have the
s3:PutBucketVersioning
permission.Ensure account permissions: In case of an organization or multiple accounts, check if cross-account permissions are properly set up to enable bucket versioning.
Check bucket ownership: Confirm that you are the bucket owner or have appropriate permissions to enable versioning.
Verify bucket region: Ensure that the bucket resides in the desired region. The region selection could impact compliance with GxP EU Annex 11.
Necessary Code (if applicable):
No specific code is required for enabling versioning as this can be managed using the AWS Management Console or AWS Command Line Interface (CLI).
Step-by-Step Guide for Remediation:
Follow the steps below to enable versioning for an S3 bucket:
Open the AWS Management Console or launch the AWS CLI.
AWS Management Console:
AWS CLI:
Open your terminal or command prompt.
Run the following command to enable versioning for the bucket:
aws s3api put-bucket-versioning --bucket <bucket-name> --versioning-configuration Status=Enabled
After enabling versioning, AWS automatically saves all future versions of objects in the bucket, providing compliance with GxP EU Annex 11.
To verify if versioning is enabled for the bucket, you can check the bucket properties either through the console or using the following AWS CLI command:
aws s3api get-bucket-versioning --bucket <bucket-name>
The output will display the current status of versioning for the bucket.
Conclusion:
Enabling versioning for S3 buckets ensures compliance with GxP EU Annex 11 by maintaining a complete revision history of objects. Following the provided troubleshooting steps and the step-by-step guide will help you enable versioning for your desired S3 bucket.