Skip to content

Commit

Permalink
Merge pull request #19 from redhatHameed/issue#18
Browse files Browse the repository at this point in the history
Fix the ACL issue, mentioned in  issue#18
  • Loading branch information
franciscojavierarceo authored Jan 7, 2025
2 parents 7c698ba + 680a2d9 commit c5af6c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions module_0/infra/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ resource "aws_s3_bucket" "feast_bucket" {
force_destroy = true
}

resource "aws_s3_bucket_ownership_controls" "feast_bucket_acl" {
bucket = aws_s3_bucket.feast_bucket.bucket
rule {
object_ownership = "BucketOwnerPreferred"
}
}

resource "aws_s3_bucket_acl" "feast_bucket_acl" {
bucket = aws_s3_bucket.feast_bucket.bucket
acl = "private"
Expand Down

0 comments on commit c5af6c5

Please sign in to comment.