From aa7c57e92e691a22433092bceea9de879f66d7ab Mon Sep 17 00:00:00 2001 From: Alexandre ABRIOUX Date: Wed, 3 Jul 2024 18:14:59 +0200 Subject: [PATCH] fix: lookup default value for soft delete policy (#318) Co-authored-by: Andrew Peabody --- main.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 40bfbb7b..111a788c 100644 --- a/main.tf +++ b/main.tf @@ -157,7 +157,9 @@ resource "google_storage_bucket" "buckets" { } dynamic "soft_delete_policy" { - for_each = [lookup(var.soft_delete_policy, each.value, {})] + for_each = [lookup(var.soft_delete_policy, each.value, { + retention_duration_seconds = null + })] content { retention_duration_seconds = lookup(soft_delete_policy.value, "retention_duration_seconds", null) }