Skip to content

Commit

Permalink
fix: Fix cache_usage_limits issue when empty map (default value) is p…
Browse files Browse the repository at this point in the history
…rovided. (#13)
  • Loading branch information
dszlawski-chaos authored Sep 9, 2024
1 parent 575c312 commit 2a02a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/serverless-cache/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource "aws_elasticache_serverless_cache" "this" {
name = var.cache_name

dynamic "cache_usage_limits" {
for_each = try([var.cache_usage_limits], [])
for_each = length(var.cache_usage_limits) > 0 ? [var.cache_usage_limits] : []
content {

dynamic "data_storage" {
Expand Down

0 comments on commit 2a02a2c

Please sign in to comment.