We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6081217 commit 98b35a1Copy full SHA for 98b35a1
s3.tf
@@ -2,9 +2,6 @@ resource "aws_s3_bucket" "this" {
2
bucket = "${var.project_name}-${var.aws_account_id}"
3
4
block_public_acls = true
5
- block_public_policy = true
6
- ignore_public_acls = true
7
- restrict_public_buckets = true
8
9
website {
10
redirect_all_requests_to = "https://${var.target_domain}"
@@ -32,3 +29,11 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "this" {
32
29
}
33
30
34
31
+
+resource "aws_s3_bucket_versioning" "this" {
35
+ bucket = aws_s3_bucket.this.id
36
+ versioning_configuration {
37
+ status = "Enabled"
38
+ }
39
+}
0 commit comments