Skip to content

Commit c5af6c5

Browse files
Merge pull request #19 from redhatHameed/issue#18
Fix the ACL issue, mentioned in issue#18
2 parents 7c698ba + 680a2d9 commit c5af6c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

module_0/infra/aws/main.tf

Lines changed: 7 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"

0 commit comments

Comments
 (0)