From 680a2d913661f2fd43a88ac198ce1964d626a014 Mon Sep 17 00:00:00 2001 From: Abdul Hameed Date: Thu, 14 Dec 2023 10:21:23 -0500 Subject: [PATCH] Fix the ACL issue, mentioned in in issue#18 Signed-off-by: Abdul Hameed --- module_0/infra/aws/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module_0/infra/aws/main.tf b/module_0/infra/aws/main.tf index 4fe1cca..79fa029 100644 --- a/module_0/infra/aws/main.tf +++ b/module_0/infra/aws/main.tf @@ -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"