Skip to content

Commit

Permalink
Update s3.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kariemoorman authored Apr 26, 2024
1 parent 096b6a5 commit b3ec077
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tf/step1/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ resource "aws_s3_bucket" "log_bucket" {
# Create a block public access configuration
resource "aws_s3_bucket_public_access_block" "log_block" {
bucket = aws_s3_bucket.log_bucket.id

block_public_acls = true
block_public_policy = true
ignore_public_acls = true
restrict_public_buckets = true
}

# Add ACL
Expand Down

0 comments on commit b3ec077

Please sign in to comment.