actionECS

update_container_instances_state

Modify the status of an ACTIVE ECS container instance

Activity as code

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

Typeaction
Modulechaosaws.ecs.actions
Nameupdate_container_instances_state
Returnmapping

Usage

JSON

{
  "name": "update-container-instances-state",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.ecs.actions",
    "func": "update_container_instances_state",
    "arguments": {
      "cluster": "",
      "container_instances": [],
      "status": ""
    }
  }
}

YAML

name: update-container-instances-state
provider:
  arguments:
    cluster: ""
    container_instances: []
    status: ""
  func: update_container_instances_state
  module: chaosaws.ecs.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
clusterstringYesClusterName of the target ECS cluster
container_instanceslistYesInstancesList of container instance ID or ARN
statusstringYesStatusDesired instances state: ACTIVE, RUNNING

Signature

def update_container_instances_state(
        cluster: str,
        container_instances: List[str],
        status: str,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass