Skip to content

Commit bc0c5f1

Browse files
Merge pull request #87 from jwhitcraft/slow_start
Add slow_start option to target_group defs
2 parents d400c45 + 7b9843b commit bc0c5f1

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

alb_no_logs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ resource "aws_lb_target_group" "main_no_logs" {
2727
protocol = "${upper(lookup(var.target_groups[count.index], "backend_protocol"))}"
2828
deregistration_delay = "${lookup(var.target_groups[count.index], "deregistration_delay", lookup(local.target_groups_defaults, "deregistration_delay"))}"
2929
target_type = "${lookup(var.target_groups[count.index], "target_type", lookup(local.target_groups_defaults, "target_type"))}"
30+
slow_start = "${lookup(var.target_groups[count.index], "slow_start", lookup(local.target_groups_defaults, "slow_start"))}"
3031

3132
health_check {
3233
interval = "${lookup(var.target_groups[count.index], "health_check_interval", lookup(local.target_groups_defaults, "health_check_interval"))}"

alb_w_logs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ resource "aws_lb_target_group" "main" {
3333
protocol = "${upper(lookup(var.target_groups[count.index], "backend_protocol"))}"
3434
deregistration_delay = "${lookup(var.target_groups[count.index], "deregistration_delay", lookup(local.target_groups_defaults, "deregistration_delay"))}"
3535
target_type = "${lookup(var.target_groups[count.index], "target_type", lookup(local.target_groups_defaults, "target_type"))}"
36+
slow_start = "${lookup(var.target_groups[count.index], "slow_start", lookup(local.target_groups_defaults, "slow_start"))}"
3637

3738
health_check {
3839
interval = "${lookup(var.target_groups[count.index], "health_check_interval", lookup(local.target_groups_defaults, "health_check_interval"))}"

locals.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ locals {
1111
health_check_matcher = "200-299"
1212
stickiness_enabled = true
1313
target_type = "instance"
14+
slow_start = 0
1415
}
1516

1617
target_groups_defaults = "${merge(local.target_groups_default_configs, var.target_groups_defaults)}"

test/integration/default/test_alb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
its(:unhealthy_threshold_count) { should eq 3 }
3838
its(:target_type) { should eq 'instance' }
3939
its(:health_check_port) { should eq 'traffic-port' }
40+
its(:slow_start) { should eq 0 }
4041
end
4142
end
4243

0 commit comments

Comments
 (0)