From 3403fcaa935d5d296a32f64b633a8185bda2b714 Mon Sep 17 00:00:00 2001 From: flora-five <72858916+flora-five@users.noreply.github.com> Date: Tue, 30 Sep 2025 00:22:02 +0300 Subject: [PATCH] fix: Update the complete-alb example to apply without errors --- .pre-commit-config.yaml | 2 +- examples/complete-alb/main.tf | 30 +++++++++++++++++------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 868fb48..52fd864 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.100.0 + rev: v1.100.1 hooks: - id: terraform_fmt - id: terraform_wrapper_module_for_each diff --git a/examples/complete-alb/main.tf b/examples/complete-alb/main.tf index 0963b2b..4286040 100644 --- a/examples/complete-alb/main.tf +++ b/examples/complete-alb/main.tf @@ -104,12 +104,12 @@ module "alb" { weighted_forward = { target_groups = [ { - key = "ex-lambda-with-trigger" - weight = 2 + target_group_key = "ex-lambda-with-trigger" + weight = 2 }, { - key = "ex-instance" - weight = 1 + target_group_key = "ex-instance" + weight = 1 } ] stickiness = { @@ -259,15 +259,19 @@ module "alb" { } }] - conditions = [{ - query_string = [{ - key = "weighted" - value = "true" - }], - path_pattern = { - values = ["/some/path"] - } - }] + conditions = [ + { + query_string = [{ + key = "weighted" + value = "true" + }] + }, + { + path_pattern = { + values = ["/some/path"] + } + }, + ] } ex-redirect = {