Skip to content

Commit e43062d

Browse files
committed
Clarify task placement docs
1 parent b0ece0e commit e43062d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,12 +487,12 @@ Currently, the only parameter supported under `run_params` is `network_configura
487487
* `assign_public_ip`: supported values for this field are either "ENABLED" or "DISABLED". This field is *only* used for tasks launched with Fargate launch type. If this field is present in tasks with network configuration launched with EC2 launch type, the request will fail.
488488
* `task_placement` is an optional field with `EC2` launch-type only (it is *not* valid for `FARGATE`). It has two subfields:
489489
* `strategy`: A list of objects, with two keys. Valid keys are `type` and `field`.
490-
* `type`: Valid values are `random`, `binpack`, or `spread`. If `random` is specified, the `field` key is not necessary.
490+
* `type`: Valid values are `random`, `binpack`, or `spread`. If `random` is specified, the `field` key should not be provided.
491491
* `field`: Valid values depend on the strategy type.
492492
* For `spread`, valid values are `instanceId`, `host`, or attribute key/value pairs, e.g. `attribute:ecs.instance-type =~ t2.*`
493493
* For "binpack", valid values are "cpu" or "memory".
494494
* `constraint`: A list of objects, with two keys. Valid keys are `type` and `expression`.
495-
* `type`: Valid values are `distinctInstance` and `memberOf`. If `distinctInstance` is specified, the `expression key is not necessary.
495+
* `type`: Valid values are `distinctInstance` and `memberOf`. If `distinctInstance` is specified, the `expression` key should not be provided.
496496
* `expression`: When `type` is `memberOf`, valid values are key/value pairs for attributes or task groups, e.g. `task:group == databases` or `attribute:color =~ green`.
497497

498498
For more information on task placement, see [Amazon ECS TaskPlacement] (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html).

0 commit comments

Comments
 (0)