Skip to content

Commit

Permalink
add target object format
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 2, 2024
1 parent 90e4981 commit 9f4ddd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions s3-config-org/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ resource "aws_s3_bucket_logging" "config_org" {
bucket = aws_s3_bucket.config_org.id
target_bucket = var.access_log_bucket
target_prefix = format("%v/%v/", var.access_log_bucket_prefix, local.bucket_name)
target_object_key_format {
partitioned_prefix {
partition_date_source = "EventTime"
}
}
}

resource "aws_s3_bucket_acl" "config_org" {
Expand Down

0 comments on commit 9f4ddd1

Please sign in to comment.