π AWS S3 Bucket Versioning is not enabled π’
- Contextual name: π Bucket Versioning is not enabled π’
- ID:
/ce/ca/aws/s3/bucket-versioning
- Located in: π AWS S3
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
RELIABILITY
SECURITY
Similar Policiesβ
- AWS Trusted Advisor
- [R365s2Qddf](Amazon S3 Bucket Versioning (https://docs.aws.amazon.com/awssupport/latest/user/fault-tolerance-checks.html#amazon-s3-bucket-versioning)]
- Cloud Conformity
- Internal
dec-x-2a9e5255
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-2a9e5255 | 1 |
Logicβ
- π§ prod.logic.yaml π’
- π AWS S3 Bucket
- π AWS S3 Bucket - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
Make sure to enable the Amazon S3 bucket versioning.
Amazon S3 bucket versioning is a feature that enhances the resiliency and security of your data by enabling the storage of multiple versions of objects within the same bucket. This functionality provides a mechanism for preserving, retrieving, and restoring every version of every object stored in the bucket.
Rationalβ
When enabled, this feature allows you to keep multiple versions of an object in the same S3 bucket. Each version is assigned a unique version ID, providing a robust version control mechanism for your stored data by allowing users to keep track of changes and maintain a history of modifications.
Impactβ
By leveraging versioning, users can maintain control over their stored objects, reduce the risk of data loss, and meet various compliance and regulatory requirements.
Disabled S3 bucket versioning can lead to increased risk of data loss. Any accidental deletion or overwrite of an object can result in permanent data loss, as there are no previous versions to recover.
... see more
Remediationβ
Remediationβ
From Command Lineβ
Use the following AWS CLI command to enable versioning for your S3 bucket. Replace
{{your-bucket-name}}
with the actual name of your S3 bucket.aws s3api put-bucket-versioning --bucket {{your-bucket-name}} --versioning-configuration Status=Enabled
This command sends a request to Amazon S3 to enable versioning for the specified bucket.
To confirm that versioning has been successfully enabled for your bucket, you can use the following command:
aws s3api get-bucket-versioning --bucket {{your-bucket-name}}
The response will include the versioning configuration for your bucket, and you should see
"Status": "Enabled"
.