diff --git a/examples/complete-alb/main.tf b/examples/complete-alb/main.tf index 67d35ed..d1a6c80 100644 --- a/examples/complete-alb/main.tf +++ b/examples/complete-alb/main.tf @@ -137,10 +137,14 @@ module "alb" { }] conditions = [{ - query_string = { + query_string = [{ key = "video" value = "random" - } + }, + { + key = "image" + value = "next" + }] }] } } diff --git a/main.tf b/main.tf index 79e3f41..7cc03ee 100644 --- a/main.tf +++ b/main.tf @@ -422,7 +422,7 @@ resource "aws_lb_listener_rule" "this" { content { dynamic "query_string" { - for_each = try([condition.value.query_string], []) + for_each = try(flatten([condition.value.query_string]), []) content { key = try(query_string.value.key, null)