Skip to content

Commit b2e59c8

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

module_0/infra/aws/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ provider "aws" {
55
resource "aws_s3_bucket" "feast_bucket" {
66
bucket = "feast-workshop-${var.project_name}"
77
force_destroy = true
8+
89
}
910

1011
resource "aws_s3_bucket_acl" "feast_bucket_acl" {
@@ -17,3 +18,11 @@ resource "aws_s3_object" "driver_stats_upload" {
1718
key = "driver_stats.parquet"
1819
source = "${path.module}/../driver_stats.parquet"
1920
}
21+
22+
23+
resource "aws_s3_bucket_ownership_controls" "feast_bucket_acl" {
24+
bucket = aws_s3_bucket.feast_bucket.bucket
25+
rule {
26+
object_ownership = "BucketOwnerPreferred"
27+
}
28+
}

0 commit comments

Comments
 (0)