Skip to content

Commit 2d781d6

Browse files
authored
Update for Terraform AWS provider v3 (techservicesillinois#52)
1 parent 67ff985 commit 2d781d6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

listener_rule.tf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ resource "aws_alb_listener_rule" "default" {
1010
}
1111

1212
condition {
13-
field = "path-pattern"
14-
values = [local.path_pattern]
13+
path_pattern {
14+
values = [local.path_pattern]
15+
}
1516
}
1617

1718
condition {
18-
field = "host-header"
19-
values = [local.host_header]
19+
host_header {
20+
values = [local.host_header]
21+
}
2022
}
2123
}
2224

@@ -31,12 +33,14 @@ resource "aws_alb_listener_rule" "set_priority" {
3133
}
3234

3335
condition {
34-
field = "path-pattern"
35-
values = [local.path_pattern]
36+
path_pattern {
37+
values = [local.path_pattern]
38+
}
3639
}
3740

3841
condition {
39-
field = "host-header"
40-
values = [local.host_header]
42+
host_header {
43+
values = [local.host_header]
44+
}
4145
}
4246
}

0 commit comments

Comments
 (0)