We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
antonbabenko
Learn more about funding links in repositories.
Report abuse
1 parent 7263d09 commit 59f65afCopy full SHA for 59f65af
main.tf
@@ -40,6 +40,27 @@ resource "aws_s3_bucket_logging" "this" {
40
41
target_bucket = var.logging["target_bucket"]
42
target_prefix = try(var.logging["target_prefix"], null)
43
+
44
45
+ dynamic "target_object_key_format" {
46
+ for_each = try([var.logging["target_object_key_format"]], [])
47
48
+ content {
49
+ dynamic "partitioned_prefix" {
50
+ for_each = try(target_object_key_format.value["partitioned_prefix"], [])
51
52
53
+ partition_date_source = try(partitioned_prefix.value, null)
54
+ }
55
56
57
+ dynamic "simple_prefix" {
58
+ for_each = contains(keys(target_object_key_format.value), "simple_prefix") ? [true] : []
59
60
+ content {}
61
62
63
64
}
65
66
resource "aws_s3_bucket_acl" "this" {
0 commit comments