actionECS

set_service_deployment_configuration

Sets the maximum healthy count and minimum healthy percentage values for a services deployment configuration

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaosaws.ecs.actions
Nameset_service_deployment_configuration
Returnmapping

Usage

JSON

{
  "name": "set-service-deployment-configuration",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.ecs.actions",
    "func": "set_service_deployment_configuration",
    "arguments": {
      "cluster": "",
      "service": ""
    }
  }
}

YAML

name: set-service-deployment-configuration
provider:
  arguments:
    cluster: ""
    service: ""
  func: set_service_deployment_configuration
  module: chaosaws.ecs.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
clusterstringYesClusterName of the target ECS cluster
servicestringYesServiceName of the target service
maximum_percentinteger200NoUpper LimitNumber of RUNNING or PENDING tasks upper limit for the service
minimum_healthy_percentinteger100NoLower LimitNumber of RUNNING tasks lower limit for the service

Signature

def set_service_deployment_configuration(
        cluster: str,
        service: str,
        maximum_percent: int = 200,
        minimum_healthy_percent: int = 100,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass