Skip to content

Commit

Permalink
Update s3.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kariemoorman committed Apr 26, 2024
1 parent fa1e476 commit 02d7fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tf/step2_cf-only/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ resource "aws_s3_object" "upload_object" {
# Create Log bucket
resource "aws_s3_bucket" "log_bucket" {
bucket = "tf-log-bucket"
acl = "private"
ignore_public_acls = true
}

# Add ACL
Expand All @@ -73,7 +75,6 @@ resource "aws_s3_bucket_acl" "log_bucket_acl" {
# Add versioning
resource "aws_s3_bucket_versioning" "log_bucket_versioning" {
bucket = aws_s3_bucket.log_bucket.id

versioning_configuration {
status = "Enabled"
}
Expand Down

0 comments on commit 02d7fc7

Please sign in to comment.