Skip to content

Commit

Permalink
set acl
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 7, 2022
1 parent da73b71 commit f26c896
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions s3-flow-logs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ locals {
#---
resource "aws_s3_bucket" "flowlogs" {
bucket = local.bucket_name
acl = "log-delivery-write"
# acl = "log-delivery-write"

# need to create the inf_ key used for infrastucture things like
# vpc flow, cloudtrail, config, sns, sqs
Expand Down Expand Up @@ -117,9 +117,8 @@ resource "aws_s3_bucket_ownership_controls" "flowlogs" {
}

resource "aws_s3_bucket_acl" "flowlogs" {
count = 0
bucket = aws_s3_bucket.flowlogs.id
acl = "private"
acl = "log-delivery-write"
}

## resource "aws_s3_bucket_logging" "flowlogs" {
Expand Down

0 comments on commit f26c896

Please sign in to comment.