File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ resource "aws_s3_bucket" "website" {
7
7
resource "aws_s3_bucket_acl" "website" {
8
8
bucket = aws_s3_bucket. website . id
9
9
acl = " public-read"
10
+ depends_on = [
11
+ aws_s3_bucket_ownership_controls . website ,
12
+ aws_s3_bucket_public_access_block . website ,
13
+ ]
10
14
}
11
15
resource "aws_s3_bucket_public_access_block" "website" {
12
16
bucket = aws_s3_bucket. website . id
@@ -57,6 +61,10 @@ resource "aws_s3_bucket_acl" "website_redirect_apex" {
57
61
count = var. apex_redirect ? 1 : 0
58
62
bucket = aws_s3_bucket. website_redirect_apex [0 ]. id
59
63
acl = " public-read"
64
+ depends_on = [
65
+ aws_s3_bucket_ownership_controls . website_redirect_apex [0 ],
66
+ aws_s3_bucket_public_access_block . website_redirect_apex [0 ],
67
+ ]
60
68
}
61
69
resource "aws_s3_bucket_public_access_block" "website_redirect_apex" {
62
70
count = var. apex_redirect ? 1 : 0
You can’t perform that action at this time.
0 commit comments