Skip to content

Commit

Permalink
Fix for ACL changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skyfox675 committed Jul 12, 2023
1 parent f7af3d2 commit b30f56a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@ resource "aws_s3_bucket" "this" {
}
}

resource "aws_s3_bucket_acl" "this" {
resource "aws_s3_bucket_ownership_controls" "this" {
bucket = aws_s3_bucket.this.id
acl = "private"

rule {
object_ownership = "BucketOwnerPreferred"
}
depends_on = [
aws_s3_bucket.this
aws_s3_bucket.this,
]
}

resource "aws_s3_bucket_ownership_controls" "this" {
resource "aws_s3_bucket_acl" "this" {
bucket = aws_s3_bucket.this.id

rule {
object_ownership = "BucketOwnerEnforced"
}
acl = "private"
depends_on = [
aws_s3_bucket.this,
aws_s3_bucket_acl.this
aws_s3_bucket_ownership_controls.this
]
}

Expand Down

0 comments on commit b30f56a

Please sign in to comment.