Skip to content

Commit

Permalink
feat: update bucket acl
Browse files Browse the repository at this point in the history
update bucket acl to match with aws provide 4.x
  • Loading branch information
githubjianli authored Nov 15, 2023
1 parent 18936e1 commit c120b7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions s3-other.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ resource "aws_s3_bucket_ownership_controls" "apiary_inventory_bucket" {
}
}

resource "aws_s3_bucket_acl" "apiary_inventory_bucket" {
depends_on = [aws_s3_bucket_ownership_controls.apiary_inventory_bucket]
bucket = aws_s3_bucket.apiary_inventory_bucket.id
acl = "private"
}

resource "aws_s3_bucket" "apiary_managed_logs_bucket" {
count = local.enable_apiary_s3_log_management ? 1 : 0
bucket = local.apiary_s3_logs_bucket
Expand Down

0 comments on commit c120b7c

Please sign in to comment.