File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ module "ecs_apps" {
105105| extra\_ certificate\_ arns | Extra ACM certificates to add to ALB Listeners | ` list(string) ` | ` [] ` | no |
106106| extra\_ task\_ policies\_ arn | Extra policies to add to the task definition permissions | ` list(string) ` | ` [] ` | no |
107107| fargate\_ only | Enable when cluster is only for fargate and does not require ASG/EC2/EFS infrastructure | ` bool ` | ` false ` | no |
108+ | idle\_ timeout | IDLE time for ALB on seconds. | ` number ` | ` 400 ` | no |
108109| instance\_ types | Instance type for ECS workers | ` list(any) ` | ` [] ` | no |
109110| instance\_ volume\_ size | Volume size for docker volume (in GB). | ` number ` | ` 30 ` | no |
110111| instance\_ volume\_ size\_ root | Volume size for root volume (in GB). | ` number ` | ` 16 ` | no |
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 ])
You can’t perform that action at this time.
0 commit comments