Skip to content

Commit

Permalink
Merge pull request #8 from TomasMocek/depl_percentages
Browse files Browse the repository at this point in the history
Feature/Expose deployment percentages
  • Loading branch information
mikael-lindstrom authored Jan 10, 2019
2 parents 126ea65 + 895b346 commit ae709f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ resource "aws_ecs_service" "service" {
task_definition = "${aws_ecs_task_definition.task.arn}"
desired_count = "${var.desired_count}"
launch_type = "FARGATE"
deployment_minimum_healthy_percent = 50
deployment_maximum_percent = 200
deployment_minimum_healthy_percent = "${var.deployment_minimum_healthy_percent}"
deployment_maximum_percent = "${var.deployment_maximum_percent}"
health_check_grace_period_seconds = "${var.health_check_grace_period_seconds}"

network_configuration {
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,13 @@ variable "tags" {
type = "map"
default = {}
}

variable "deployment_minimum_healthy_percent" {
default = "50"
description = "The lower limit of the number of running tasks that must remain running and healthy in a service during a deployment"
}

variable "deployment_maximum_percent" {
default = "200"
description = "The upper limit of the number of running tasks that can be running in a service during a deployment"
}

0 comments on commit ae709f1

Please sign in to comment.