Skip to content

Module_0 not working due to changes in AWS bucket #18

Open

Description

@pmayd

It seems you no longer can attach ACL to buckets, see: terraform-aws-modules/terraform-aws-s3-bucket#223. I removed the following resource from main.tf and was able to deploy

resource "aws_s3_bucket_acl" "feast_bucket_acl" {
  bucket = aws_s3_bucket.feast_bucket.bucket
  acl    = "private"
}

Activity

  1. redhatHameed commented on Dec 11, 2023

    @redhatHameed
    Contributor

    found the same issue and resolved it by updating the main.tf file under infra/aws with the following lines

    resource "aws_s3_bucket_ownership_controls" "feast_bucket_acl" {
      bucket = aws_s3_bucket.feast_bucket.bucket
      rule {
        object_ownership = "BucketOwnerPreferred"
      }
    }
    
    
  2. jeremyary commented on Dec 14, 2023

    @jeremyary

    good find @redhatHameed, thanks! Adding a small note that order is important, so the addition to main.tf needs to be above line 10 - this worked when I added to the top of the file underneath provider, but failed when I had just appended to bottom.

  3. redhatHameed commented on Dec 14, 2023

    @redhatHameed
    Contributor

    @jeremyary agree here is PR to fix that #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions