Skip to content

Commit

Permalink
fix access_log prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 15, 2020
1 parent bae2f55 commit 4c4d67c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
locals {
enforced_tags = {
"boc:safeguard" = "title26"
"test:tag" = "code"
}
}

Expand All @@ -38,18 +37,13 @@ resource "aws_s3_bucket" "this" {
#enabled = false
}

#logging {
# target_bucket = var.access_log_bucket
# target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.access_log_bucket)
#}

logging {
target_bucket = var.access_log_bucket
target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.bucket_name)
}

lifecycle {
#prevent_destroy = true
prevent_destroy = true
}

tags = merge(
Expand Down Expand Up @@ -98,7 +92,7 @@ resource "null_resource" "s3_create_wait" {
}
provisioner "local-exec" {
when = create
command = "sleep 120"
command = "sleep 180"
}
}

Expand Down

0 comments on commit 4c4d67c

Please sign in to comment.