Skip to content

Commit

Permalink
update s3-access-logs acl to log-delivery-write, ownership to preferred
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 17, 2022
1 parent 0bd723d commit a31a9d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions s3-access-logs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ resource "aws_s3_bucket_versioning" "logs" {
resource "aws_s3_bucket_ownership_controls" "this" {
bucket = aws_s3_bucket.logs.id
rule {
object_ownership = "BucketOwnerEnforced"
object_ownership = "BucketOwnerPreferred"
}
}

Expand All @@ -127,7 +127,8 @@ resource "aws_s3_bucket_server_side_encryption_configuration" "logs" {
resource "aws_s3_bucket_acl" "logs" {
# count = 0
bucket = aws_s3_bucket.logs.id
acl = "private"
# acl = "private"
acl = "log-delivery-write"
}

#---
Expand Down

0 comments on commit a31a9d6

Please sign in to comment.