Skip to content

Commit b94a4b9

Browse files
mksmbrandonjbjelland
authored andcommitted
Add deregistration_delay argument (#34)
1 parent c322d0b commit b94a4b9

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ resource "aws_s3_bucket" "log_bucket" {
3030
}
3131

3232
resource "aws_alb_target_group" "target_group" {
33-
name = "${var.alb_name}-tg"
34-
port = "${var.backend_port}"
35-
protocol = "${upper(var.backend_protocol)}"
36-
vpc_id = "${var.vpc_id}"
33+
name = "${var.alb_name}-tg"
34+
port = "${var.backend_port}"
35+
protocol = "${upper(var.backend_protocol)}"
36+
vpc_id = "${var.vpc_id}"
37+
deregistration_delay = "${var.deregistration_delay}"
3738

3839
health_check {
3940
interval = "${var.health_check_interval}"

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ variable "cookie_duration" {
4646
default = 1
4747
}
4848

49+
variable "deregistration_delay" {
50+
description = "The amount time to wait before changing the state of a deregistering target from draining to unused."
51+
default = 300
52+
}
53+
4954
variable "force_destroy_log_bucket" {
5055
description = "If set to true and if the log bucket already exists, it will be destroyed and recreated."
5156
default = false

0 commit comments

Comments
 (0)