Skip to content

Commit

Permalink
Add slow_start parameter to ecs-service-with-alb (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshoe authored Oct 28, 2019
1 parent 7fcf733 commit 39f66dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws-ecs-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ service = false` argument can be removed.
| registry\_secretsmanager\_arn | ARN for AWS Secrets Manager secret for credentials to private registry | string | `null` | no |
| route53\_zone\_id | Zone in which to create an alias record to the ALB. | string | n/a | yes |
| service | Service for tagging and naming. See [doc](../README.md#consistent-tagging). | string | n/a | yes |
| slow_start | Seconds for targets to warm up before the load balancer sends them a full share of requests. | number | 60 | no |
| ssl\_policy | ELB policy to determine which SSL/TLS encryption protocols are enabled. Probably don't touch this. | string | `null` | no |
| subdomain | Subdomain in the zone. Final domain name will be subdomain.zone | string | n/a | yes |
| tag\_service | Apply cost tags to the ECS service. Only specify false for backwards compatibility with old ECS services. | bool | `true` | no |
Expand Down
1 change: 1 addition & 0 deletions aws-ecs-service/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resource "aws_lb_target_group" "service" {
target_type = var.awsvpc_network_mode ? "ip" : "instance"

deregistration_delay = 60
slow_start = var.slow_start

health_check {
path = var.health_check_path
Expand Down
6 changes: 6 additions & 0 deletions aws-ecs-service/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,9 @@ variable "ordered_placement_strategy" {
default = []
description = "Placement strategy for the task instances."
}

variable "slow_start" {
description = "Seconds for targets to warm up before the load balancer sends them a full share of requests. 30-900 seconds or 0 to disable."
type = number
default = 60
}

0 comments on commit 39f66dc

Please sign in to comment.