We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575c312 commit 2a02a2cCopy full SHA for 2a02a2c
modules/serverless-cache/main.tf
@@ -5,7 +5,7 @@ resource "aws_elasticache_serverless_cache" "this" {
5
name = var.cache_name
6
7
dynamic "cache_usage_limits" {
8
- for_each = try([var.cache_usage_limits], [])
+ for_each = length(var.cache_usage_limits) > 0 ? [var.cache_usage_limits] : []
9
content {
10
11
dynamic "data_storage" {
0 commit comments