Skip to content

Commit

Permalink
fix delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 24, 2020
1 parent ad4058e commit 9fea093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ data "aws_iam_policy_document" "this" {
resource "aws_s3_bucket_policy" "policy" {
bucket = aws_s3_bucket.this.bucket
policy = data.aws_iam_policy_document.this.json
#depends_on = [null_resource.policy_delay]
depends_on = [null_resource.policy_delay]
}

resource "aws_s3_bucket_public_access_block" "this" {
Expand All @@ -136,7 +136,7 @@ resource "aws_s3_bucket_public_access_block" "this" {
restrict_public_buckets = true
}

resource "null_resource" "s3_create_wait" {
resource "null_resource" "policy_delay" {
triggers = {
bucket = aws_s3_bucket.this.id
}
Expand Down

0 comments on commit 9fea093

Please sign in to comment.