Skip to content

Commit 8aed497

Browse files
Properly type the default replication filter object (#96)
* Properly type the default replication filter object
1 parent 54d3caf commit 8aed497

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
@@ -194,7 +194,7 @@ resource "aws_s3_bucket" "default" {
194194
# If the corresponding rule requires no filter, an empty configuration block filter {} must be specified.
195195
# See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket
196196
dynamic "filter" {
197-
for_each = try(rules.value.filter, null) == null ? ["empty"] : [rules.value.filter]
197+
for_each = try(rules.value.filter, null) == null ? [{ prefix = null, tags = {} }] : [rules.value.filter]
198198

199199
content {
200200
prefix = try(filter.value.prefix, try(rules.value.prefix, null))

0 commit comments

Comments
 (0)