Skip to content

Commit

Permalink
add policy delay
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 24, 2020
1 parent 64c0fc3 commit e3009dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ resource "aws_s3_bucket" "this" {
logging {
target_bucket = var.access_log_bucket
target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.bucket_name)
#target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.access_log_bucket)
}

lifecycle {
Expand Down Expand Up @@ -126,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 Down

0 comments on commit e3009dc

Please sign in to comment.