Skip to content

Commit cc5e07e

Browse files
authored
Merge pull request #5 from DNXLabs/feature/add_default_cooldown_var_asg
add asg default variables to override
2 parents 6595a1d + e6fcb25 commit cc5e07e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

_variables.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ variable "target_group_arns" {
9494
type = "list"
9595
description = "List of target groups for ASG to register"
9696
}
97+
variable "autoscaling_health_check_grace_period" {
98+
default = 300
99+
description = "The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service"
100+
}
101+
102+
variable "autoscaling_default_cooldown" {
103+
default = 300
104+
description = "The amount of time, in seconds, after a scaling activity completes before another scaling activity can start"
105+
}

asg.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ resource "aws_autoscaling_group" "ecs" {
3838
]
3939

4040
target_group_arns = var.target_group_arns
41-
41+
health_check_grace_period = var.autoscaling_health_check_grace_period
42+
default_cooldown = var.autoscaling_default_cooldown
4243
lifecycle {
4344
create_before_destroy = true
4445
}

0 commit comments

Comments
 (0)