Ensure that S3 bucket versioning is enabled to protect data against accidental deletions or overwrites.
Rule | S3 bucket versioning should be enabled |
Framework | HIPAA |
Severity | ✔ High |
HIPAA Compliance Rule: Enable Bucket Versioning for S3 Buckets
Rule Description:
In order to achieve HIPAA compliance, it is mandatory to enable versioning for all S3 buckets that store Protected Health Information (PHI). S3 bucket versioning helps in maintaining a complete historical record of all objects stored within the bucket, allowing you to recover previous versions of objects in case of accidental deletion or modification.
Enabling bucket versioning ensures data integrity and helps meet the regulatory requirements of HIPAA by ensuring that all changes made to PHI data within the S3 bucket are traceable. This rule applies to any S3 bucket that contains PHI or interacts with any other system storing PHI.
Troubleshooting Steps:
Code/Configuration:
There are two ways to enable bucket versioning:
Using AWS Management Console:
Using AWS Command Line Interface (CLI):
aws s3api put-bucket-versioning --bucket <bucket-name> --versioning-configuration Status=Enabled
Make sure to replace
<bucket-name>
with the actual name of the S3 bucket.Remediation Steps:
It is advisable to consult with AWS documentation and HIPAA compliance experts to ensure complete adherence to HIPAA requirements and best practices regarding AWS S3 bucket versioning.