We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a823750 commit 7ac088dCopy full SHA for 7ac088d
main.tf
@@ -55,7 +55,7 @@ resource "aws_s3_bucket_logging" "this" {
55
}
56
57
dynamic "simple_prefix" {
58
- for_each = can(target_object_key_format.value["simple_prefix"]) ? [true] : []
+ for_each = length(try(target_object_key_format.value["partitioned_prefix"], [])) == 0 || can(target_object_key_format.value["simple_prefix"]) ? [true] : []
59
60
content {}
61
0 commit comments