Ensure Enabling Versioning For S3 Bucket
Ensure buckets have versioning enabled to facilitate recovering objects in the event of accidental deletions or overwrite.
Risk Level: medium
Cloud Entity: AWS
Spectral Rule ID: TFAWS276
REMEDIATION
set versioning
to true
resource "aws_s3_bucket" "example" {
versioning {
- enabled = false
+ enabled = true
}
}
References:
- https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#versioning
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/manage-versioning-examples.html
Simple Storage Service (S3)
Companies today need the ability to simply and securely collect, store, and analyze their data at a massive scale. Amazon S3 is object storage built to store and retrieve any amount of data from anywhere ��� web sites and mobile apps, corporate applications, and data from IoT sensors or devices. It is designed to deliver 99.999999999% durability, and stores data for millions of applications used by market leaders in every indu
Updated over 1 year ago