Skip to content

Commit 81f12c8

Browse files
committed
add sticky option
1 parent b3fc204 commit 81f12c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

alb-service/alb/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ resource "aws_alb_target_group" "main" {
7777
vpc_id = "${var.vpc_id}"
7878
depends_on = ["aws_alb.main"]
7979

80+
stickiness {
81+
type = "lb_cookie"
82+
enabled = true
83+
}
84+
8085
health_check {
8186
healthy_threshold = 2
8287
unhealthy_threshold = 2

0 commit comments

Comments
 (0)