Skip to content

Commit 7ac088d

Browse files
committed
Make simple_prefix default option for logging
1 parent a823750 commit 7ac088d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ resource "aws_s3_bucket_logging" "this" {
5555
}
5656

5757
dynamic "simple_prefix" {
58-
for_each = can(target_object_key_format.value["simple_prefix"]) ? [true] : []
58+
for_each = length(try(target_object_key_format.value["partitioned_prefix"], [])) == 0 || can(target_object_key_format.value["simple_prefix"]) ? [true] : []
5959

6060
content {}
6161
}

0 commit comments

Comments
 (0)