Skip to content

Commit

Permalink
Fix the ACL issue, mentioned in in issue#18
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Hameed <ahameed@redhat.com>
  • Loading branch information
redhatHameed committed Dec 14, 2023
1 parent 443c130 commit 1819d42
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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 All @@ -17,3 +24,6 @@ resource "aws_s3_object" "driver_stats_upload" {
key = "driver_stats.parquet"
source = "${path.module}/../driver_stats.parquet"
}



0 comments on commit 1819d42

Please sign in to comment.