Skip to content

Commit

Permalink
Merge pull request #47 from oozou/feat/update-slow-start-option
Browse files Browse the repository at this point in the history
feat/update-slow-start-option
  • Loading branch information
thamkrabok authored Oct 17, 2024
2 parents 4e1f8ba + 66d7659 commit 4b48426
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ resource "aws_lb_target_group" "this" {
vpc_id = var.vpc_id
target_type = lookup(each.value, "target_type", "ip")
deregistration_delay = var.target_group_deregistration_delay
slow_start = var.slow_start

health_check {
enabled = lookup(each.value.health_check, "enabled", null)
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ variable "custom_header_token" {
default = ""
}

variable "slow_start" {
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."
type = number
default = 0
}

/* -------------------------------------------------------------------------- */
/* Secret & Env */
/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit 4b48426

Please sign in to comment.