Skip to content

Commit

Permalink
Fix to all multiple query strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bdandoy committed Oct 9, 2024
1 parent 349540d commit 38c5a11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions examples/complete-alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,14 @@ module "alb" {
}]

conditions = [{
query_string = {
query_string = [{
key = "video"
value = "random"
}
},
{
key = "image"
value = "next"
}]
}]
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38c5a11

Please sign in to comment.