Skip to content

Commit bb2e3ad

Browse files
author
Sumit Sarkar
committed
FIX: Placement strategy
1 parent 8539945 commit bb2e3ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ resource "aws_ecs_service" "main" {
1818
deployment_minimum_healthy_percent = "${var.deployment_min_healthy_percent}"
1919
deployment_maximum_percent = "${var.deployment_max_percent}"
2020

21+
ordered_placement_strategy = {
22+
type = "spread"
23+
field = "instanceId"
24+
}
25+
2126
load_balancer {
2227
target_group_arn = "${aws_alb_target_group.main.id}"
2328
container_name = "${var.container_name}"

0 commit comments

Comments
 (0)