Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions aws/terraform/s3-default/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,9 @@ resource "aws_s3_object" "uut" {
key = "helloworld"
source = "files/test.txt"
}
resource "aws_s3_bucket_versioning" "my_aws_s3_bucket_versioning_aws_s3_bucket_uut" {
bucket = aws_s3_bucket.uut.id
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The status attribute within the versioning_configuration block of the aws_s3_bucket_versioning resource was set to "Enabled". This change ensures that versioning is active for the associated AWS S3 bucket.

By enabling versioning on your S3 bucket, you protect your data against unintended overwrites and deletions. Each version of an object is preserved, allowing for recovery and rollback of previous states. This is particularly important for production environments where data integrity and recovery are critical. Without this configuration, you risk losing access to previous versions of your data, which could lead to significant operational disruptions.

Leave feedback
Please post on our discussions channel. You can provide the following reference: 4a929e622cad2d797ae13276acd699f65ca334eae2c9d1f86e9dfb81ac55ad46

versioning_configuration {
status = "Enabled"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The status attribute within the versioning_configuration block of the aws_s3_bucket_versioning resource was set to "Enabled". This change ensures that versioning is active for the associated AWS S3 bucket.

By enabling versioning on your S3 bucket, you protect your data against unintended overwrites and deletions. Each version of an object is preserved, allowing for recovery and rollback of previous states. This is particularly important for production environments where data integrity and recovery are critical. Without this configuration, you risk losing access to previous versions of your data, which could lead to significant operational disruptions.

Leave feedback
Please post on our discussions channel. You can provide the following reference: 4a929e622cad2d797ae13276acd699f65ca334eae2c9d1f86e9dfb81ac55ad46

}
}
Loading