Skip to content

Commit

Permalink
FIX: Placement strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumit Sarkar committed Jul 9, 2018
1 parent 8539945 commit bb2e3ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ resource "aws_ecs_service" "main" {
deployment_minimum_healthy_percent = "${var.deployment_min_healthy_percent}"
deployment_maximum_percent = "${var.deployment_max_percent}"

ordered_placement_strategy = {
type = "spread"
field = "instanceId"
}

load_balancer {
target_group_arn = "${aws_alb_target_group.main.id}"
container_name = "${var.container_name}"
Expand Down

0 comments on commit bb2e3ad

Please sign in to comment.