From 5c5bcee040c3b095f392d92e1038c8680e3525c7 Mon Sep 17 00:00:00 2001 From: yangci Date: Tue, 14 Oct 2025 11:40:17 -0400 Subject: [PATCH] fix(serverless): change cache_usage_limits default from {} to null The serverless_cache_usage_limits variable had a default value of {} (empty object), which caused the dynamic block to create an empty cache_usage_limits block with no nested content. AWS rejects this configuration during apply, resulting in: Error: Provider produced inconsistent result after apply .cache_usage_limits: block count changed from 1 to 0 Changing the default to null allows the dynamic block logic to correctly skip creating the block when no limits are specified. --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index eb07158..60c6aae 100644 --- a/variables.tf +++ b/variables.tf @@ -324,7 +324,7 @@ variable "serverless_user_group_id" { variable "serverless_cache_usage_limits" { type = map(any) - default = {} + default = null description = "The usage limits for the serverless cache" }