Skip to content

Commit

Permalink
Merge pull request #4 from Flaconi/OPS-3896
Browse files Browse the repository at this point in the history
OPS-3896 Change listener rule due deprecation on aws provider >= 3.0
  • Loading branch information
runderwoodcr14 authored Sep 29, 2020
2 parents dc47cdd + 185614e commit 7fb7d4c
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 7fb7d4c

Please sign in to comment.