Skip to content

Commit

Permalink
add access-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ashle001 committed Jul 20, 2020
1 parent 105f964 commit 613efa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ resource "aws_s3_bucket" "this" {
enabled = true
}

logging {
target_bucket = var.access_log_bucket
target_prefix = "s3/{var.bucket_name}/"
}

lifecycle {
prevent_destroy = true
}
Expand Down

0 comments on commit 613efa2

Please sign in to comment.