Skip to content

Commit

Permalink
Expose aws_ecs_service health_check_grace_period_seconds (#19)
Browse files Browse the repository at this point in the history
* Expose aws_ecs_service health_check_grace_period_seconds

* Add type to health_check_grace_period_seconds
  • Loading branch information
ssaarinen authored and osterman committed Jan 21, 2019
1 parent 4ecc6fa commit 082871d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ resource "aws_ecs_service" "default" {
desired_count = "${var.desired_count}"
deployment_maximum_percent = "${var.deployment_maximum_percent}"
deployment_minimum_healthy_percent = "${var.deployment_minimum_healthy_percent}"
health_check_grace_period_seconds = "${var.health_check_grace_period_seconds}"
launch_type = "${var.launch_type}"
cluster = "${var.ecs_cluster_arn}"
tags = "${module.default_label.tags}"
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ variable "deployment_minimum_healthy_percent" {
description = "The lower limit (as a percentage of `desired_count`) of the number of tasks that must remain running and healthy in a service during a deployment"
default = 100
}

variable "health_check_grace_period_seconds" {
type = "string"
description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 7200. Only valid for services configured to use load balancers."
default = 0
}

0 comments on commit 082871d

Please sign in to comment.