Skip to content

Commit 5c5bcee

Browse files
authored
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.
1 parent e21dc4a commit 5c5bcee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ variable "serverless_user_group_id" {
324324

325325
variable "serverless_cache_usage_limits" {
326326
type = map(any)
327-
default = {}
327+
default = null
328328
description = "The usage limits for the serverless cache"
329329
}
330330

0 commit comments

Comments
 (0)