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 <[email protected]>
  • Loading branch information
redhatHameed committed Dec 14, 2023
1 parent 443c130 commit b2e59c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions module_0/infra/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ provider "aws" {
resource "aws_s3_bucket" "feast_bucket" {
bucket = "feast-workshop-${var.project_name}"
force_destroy = true

}

resource "aws_s3_bucket_acl" "feast_bucket_acl" {
Expand All @@ -17,3 +18,11 @@ resource "aws_s3_object" "driver_stats_upload" {
key = "driver_stats.parquet"
source = "${path.module}/../driver_stats.parquet"
}


resource "aws_s3_bucket_ownership_controls" "feast_bucket_acl" {
bucket = aws_s3_bucket.feast_bucket.bucket
rule {
object_ownership = "BucketOwnerPreferred"
}
}

0 comments on commit b2e59c8

Please sign in to comment.