Skip to content

Commit

Permalink
update logging prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Sep 14, 2020
1 parent 74a119b commit bae2f55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ 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.access_log_bucket)
}
target_prefix = format("%s/%s/", var.access_log_bucket_prefix, var.bucket_name)
}

lifecycle {
#prevent_destroy = true
Expand Down

0 comments on commit bae2f55

Please sign in to comment.