Skip to content

Commit 1319023

Browse files
authored
Merge pull request #3 from rhythmictech/s3-bucket-policy-fix
make s3_public_access_block depend on bucket_policy
2 parents 6e232e8 + b030206 commit 1319023

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ resource "aws_s3_bucket_public_access_block" "this" {
5454
create_before_destroy = true
5555
}
5656

57-
depends_on = [aws_s3_bucket.this]
57+
depends_on = [
58+
aws_s3_bucket.this,
59+
aws_s3_bucket_policy.this
60+
]
5861
}
5962

6063
data "aws_iam_policy_document" "this" {

0 commit comments

Comments
 (0)