Skip to content

Commit a13bc10

Browse files
authored
docs: Update the complete-alb example to apply without errors (#412)
1 parent c812e70 commit a13bc10

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.100.0
3+
rev: v1.100.1
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

examples/complete-alb/main.tf

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ module "alb" {
104104
weighted_forward = {
105105
target_groups = [
106106
{
107-
key = "ex-lambda-with-trigger"
108-
weight = 2
107+
target_group_key = "ex-lambda-with-trigger"
108+
weight = 2
109109
},
110110
{
111-
key = "ex-instance"
112-
weight = 1
111+
target_group_key = "ex-instance"
112+
weight = 1
113113
}
114114
]
115115
stickiness = {
@@ -259,15 +259,19 @@ module "alb" {
259259
}
260260
}]
261261

262-
conditions = [{
263-
query_string = [{
264-
key = "weighted"
265-
value = "true"
266-
}],
267-
path_pattern = {
268-
values = ["/some/path"]
269-
}
270-
}]
262+
conditions = [
263+
{
264+
query_string = [{
265+
key = "weighted"
266+
value = "true"
267+
}]
268+
},
269+
{
270+
path_pattern = {
271+
values = ["/some/path"]
272+
}
273+
},
274+
]
271275
}
272276

273277
ex-redirect = {

0 commit comments

Comments
 (0)