Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

create alb-service #134

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add sticky option
kc-dot-io committed Jun 19, 2017
commit 81f12c80073cd889506ea72c95b0725b60b88434
5 changes: 5 additions & 0 deletions alb-service/alb/main.tf
Original file line number Diff line number Diff line change
@@ -77,6 +77,11 @@ resource "aws_alb_target_group" "main" {
vpc_id = "${var.vpc_id}"
depends_on = ["aws_alb.main"]

stickiness {
type = "lb_cookie"
enabled = true
}

health_check {
healthy_threshold = 2
unhealthy_threshold = 2