Amazon Elastic Container Service Service PlacementConstraint
PlacementConstraint is a property of the AWS::ECS::Service resource that specifies the placement constraints for the tasks in the service to
associate with an Amazon Elastic Container Service (Amazon ECS) service.
Syntax
JSON
{ "Type" :String, "Expression" :String}
YAML
Type:StringExpression:String
Properties
Type-
The type of constraint:
distinctInstanceormemberOf.To ensure that each task in a particular group is running on a different container instance, use
distinctInstance. To restrict the selection to a group of valid candidates, usememberOf.distinctInstanceis not supported in task definitions.Required: Yes
Type: String
Update requires: Replacement
Expression-
A cluster query language expression to apply to the constraint. If the constraint type is
distinctInstance, you can't specify an expression. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.Required: No
Type: String
Update requires: Replacement
