Skip to content

Commit 98b35a1

Browse files
Update s3.tf
1 parent 6081217 commit 98b35a1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

s3.tf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ resource "aws_s3_bucket" "this" {
22
bucket = "${var.project_name}-${var.aws_account_id}"
33

44
block_public_acls = true
5-
block_public_policy = true
6-
ignore_public_acls = true
7-
restrict_public_buckets = true
85

96
website {
107
redirect_all_requests_to = "https://${var.target_domain}"
@@ -32,3 +29,11 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "this" {
3229
}
3330
}
3431
}
32+
33+
34+
resource "aws_s3_bucket_versioning" "this" {
35+
bucket = aws_s3_bucket.this.id
36+
versioning_configuration {
37+
status = "Enabled"
38+
}
39+
}

0 commit comments

Comments
 (0)