Skip to content

Commit

Permalink
OPS-3896 Change listener rule due deprecation on aws provider vesion …
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Underwood committed Sep 29, 2020
1 parent dc47cdd commit 185614e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,18 @@ resource "aws_lb_listener_rule" "this" {
dynamic condition {
for_each = lookup(each.value, "path_match", "*") != "*" ? [1] : []
content {
field = "path-pattern"
values = [lookup(each.value, "path_match", "*")]
path_pattern {
values = [lookup(each.value, "path_match", "*")]
}
}
}

dynamic condition {
for_each = lookup(each.value, "host_match", "*") != "*" ? [1] : []
content {
field = "host-header"
values = [lookup(each.value, "host_match", "*")]
host_header {
values = [lookup(each.value, "host_match", "*")]
}
}
}
}

0 comments on commit 185614e

Please sign in to comment.