Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,12 @@ variable "target_group_arns" {
type = "list"
description = "List of target groups for ASG to register"
}
variable "autoscaling_health_check_grace_period" {
default = 300
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"
}

variable "autoscaling_default_cooldown" {
default = 300
description = "The amount of time, in seconds, after a scaling activity completes before another scaling activity can start"
}
3 changes: 2 additions & 1 deletion asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ resource "aws_autoscaling_group" "ecs" {
]

target_group_arns = var.target_group_arns

health_check_grace_period = var.autoscaling_health_check_grace_period
default_cooldown = var.autoscaling_default_cooldown
lifecycle {
create_before_destroy = true
}
Expand Down