From 1b97f6b5d101ee374628820b987a2ae02f627005 Mon Sep 17 00:00:00 2001 From: Gregory Bloquel Date: Tue, 8 Feb 2022 12:06:18 +0100 Subject: [PATCH] feat: example to alb example --- examples/complete-alb/main.tf | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/examples/complete-alb/main.tf b/examples/complete-alb/main.tf index 401a9c6..601e8fe 100644 --- a/examples/complete-alb/main.tf +++ b/examples/complete-alb/main.tf @@ -313,6 +313,35 @@ module "alb" { values = ["yes", "please", "right now"] }] }] + }, + { + http_tcp_listener_index = 0 + priority = 4 + + actions = [{ + type = "weighted-forward" + target_groups = [ + { + target_group_index = 1 + weight = 2 + }, + { + target_group_index = 0 + weight = 1 + } + ] + stickiness = { + enabled = true + duration = 3600 + } + }] + + conditions = [{ + query_strings = [{ + key = "weighted" + value = "true" + }] + }] }, { http_tcp_listener_index = 0