Skip to content

Commit

Permalink
Feature/expose health check grace period seconds (#4)
Browse files Browse the repository at this point in the history
* feat: add support for passing in grace period
  • Loading branch information
rickardl authored Aug 7, 2018
1 parent 13a0a86 commit 126ea65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ resource "aws_ecs_service" "service" {
launch_type = "FARGATE"
deployment_minimum_healthy_percent = 50
deployment_maximum_percent = 200
health_check_grace_period_seconds = "${var.health_check_grace_period_seconds}"

network_configuration {
subnets = ["${var.private_subnet_ids}"]
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ variable "health_check" {
type = "map"
}

variable "health_check_grace_period_seconds" {
default = "300"
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."
}

variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = "map"
Expand Down

0 comments on commit 126ea65

Please sign in to comment.