Skip to content

Commit 69e43b4

Browse files
add idle_timeout_var and default 400
1 parent 94db318 commit 69e43b4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

_variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,9 @@ variable "code_deploy" {
384384
default = true
385385
description = "Enables CodeDeploy role to be used for deployment"
386386
}
387+
388+
variable "idle_timeout" {
389+
type = number
390+
default = 400
391+
description = "IDLE time for ALB on seconds."
392+
}

alb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_lb" "ecs" {
1212
aws_security_group.alb[0].id,
1313
]
1414

15-
idle_timeout = 400
15+
idle_timeout = var.idle_timeout
1616

1717
dynamic "access_logs" {
1818
for_each = compact([var.lb_access_logs_bucket])

0 commit comments

Comments
 (0)