Skip to content

Commit 4b48426

Browse files
authored
Merge pull request #47 from oozou/feat/update-slow-start-option
feat/update-slow-start-option
2 parents 4e1f8ba + 66d7659 commit 4b48426

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ resource "aws_lb_target_group" "this" {
133133
vpc_id = var.vpc_id
134134
target_type = lookup(each.value, "target_type", "ip")
135135
deregistration_delay = var.target_group_deregistration_delay
136+
slow_start = var.slow_start
136137

137138
health_check {
138139
enabled = lookup(each.value.health_check, "enabled", null)

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ variable "custom_header_token" {
137137
default = ""
138138
}
139139

140+
variable "slow_start" {
141+
description = "(Optional) Amount time for TargetGroup wait before check the farget-service. The range 30-900 seconds or 0 to disable. Not compatible with the Least outstanding requests and Weighted random routing algorithms. The default value is 0 seconds."
142+
type = number
143+
default = 0
144+
}
145+
140146
/* -------------------------------------------------------------------------- */
141147
/* Secret & Env */
142148
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)