Skip to content

Commit 1819d42

Browse files
committed
Fix the ACL issue, mentioned in in issue#18
Signed-off-by: Abdul Hameed <ahameed@redhat.com>
1 parent 443c130 commit 1819d42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

module_0/infra/aws/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ resource "aws_s3_bucket" "feast_bucket" {
77
force_destroy = true
88
}
99

10+
resource "aws_s3_bucket_ownership_controls" "feast_bucket_acl" {
11+
bucket = aws_s3_bucket.feast_bucket.bucket
12+
rule {
13+
object_ownership = "BucketOwnerPreferred"
14+
}
15+
}
16+
1017
resource "aws_s3_bucket_acl" "feast_bucket_acl" {
1118
bucket = aws_s3_bucket.feast_bucket.bucket
1219
acl = "private"
@@ -17,3 +24,6 @@ resource "aws_s3_object" "driver_stats_upload" {
1724
key = "driver_stats.parquet"
1825
source = "${path.module}/../driver_stats.parquet"
1926
}
27+
28+
29+

0 commit comments

Comments
 (0)