Skip to content

Commit

Permalink
r/aws_ses_receipt_rule(test): fix s3 bucket acl config (#32843)
Browse files Browse the repository at this point in the history
  • Loading branch information
jar-b authored Aug 3, 2023
1 parent 96e3d82 commit b076410
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions internal/service/ses/receipt_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,28 @@ resource "aws_s3_bucket" "test" {
force_destroy = "true"
}
resource "aws_s3_bucket_public_access_block" "test" {
bucket = aws_s3_bucket.test.id
block_public_acls = false
block_public_policy = false
ignore_public_acls = false
restrict_public_buckets = false
}
resource "aws_s3_bucket_ownership_controls" "test" {
bucket = aws_s3_bucket.test.id
rule {
object_ownership = "BucketOwnerPreferred"
}
}
resource "aws_s3_bucket_acl" "test" {
depends_on = [
aws_s3_bucket_public_access_block.test,
aws_s3_bucket_ownership_controls.test,
]
bucket = aws_s3_bucket.test.id
acl = "public-read-write"
}
Expand Down

0 comments on commit b076410

Please sign in to comment.