Skip to content

Commit

Permalink
fix: Fixed the issue with ACLs configuration update (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavlo Pavlichenko <[email protected]>
Co-authored-by: Anton Babenko <[email protected]>
  • Loading branch information
3 people authored Mar 10, 2023
1 parent 94e8c67 commit 2aa607d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ resource "aws_s3_bucket_acl" "this" {
}
}
}

# This `depends_on` is to prevent "AccessControlListNotSupported: The bucket does not allow ACLs."
depends_on = [aws_s3_bucket_ownership_controls.this]
}

resource "aws_s3_bucket_website_configuration" "this" {
Expand Down

0 comments on commit 2aa607d

Please sign in to comment.