AWS
update_desired_count
Set the number of desired tasks for an ECS service
Sets the service's instance placement strategy
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.ecs.actions |
Name | set_service_placement_strategy |
Return | mapping |
Usage
JSON
{
"name": "set-service-placement-strategy",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.ecs.actions",
"func": "set_service_placement_strategy",
"arguments": {
"cluster": "",
"service": "",
"placement_type": ""
}
}
}
YAML
name: set-service-placement-strategy
provider:
arguments:
cluster: ""
placement_type: ""
service: ""
func: set_service_placement_strategy
module: chaosaws.ecs.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
cluster | string | Yes | Cluster | Name of the target ECS cluster | |
service | string | Yes | Service | Name of the target service | |
placement_type | string | Yes | Placement Strategy | Type of placement to employ: random, spread or binpack | |
placement_field | string | null | No | Placement Field | Field to apply the placement strategy to |
Signature
def set_service_placement_strategy(
cluster: str,
service: str,
placement_type: str,
placement_field: str = None,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass