Skip to content

Commit ae02549

Browse files
author
Sumit Sarkar
committed
FIX: Enable sensible defaults to placement strategy and constraints.
1 parent e55ae26 commit ae02549

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

variables.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,15 @@ variable "scale_down_cooldown_seconds" {
109109
variable "ordered_placement_strategies" {
110110
type = "list"
111111
default = [{
112-
type = "spread"
113-
field = "instanceId"
112+
type = "binpack"
113+
field = "memory"
114114
}]
115115
}
116116

117117
variable "placement_constraints" {
118118
type = "list"
119119
default = [{
120-
type = "distinctInstance"
120+
type = "memberOf"
121+
expression = "attribute:ecs.os-type == linux"
121122
}]
122123
}

0 commit comments

Comments
 (0)