probeASG

wait_desired_equals_healthy_tags

Wait until the desired number matches the number of healthy instances for each of the auto-scaling groups matching tags provided

Activity as code

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

Typeprobe
Modulechaosaws.asg.probes
Namewait_desired_equals_healthy_tags
Returninteger

Returns: Integer (number of seconds it took to wait) or sys.maxsize in case of timeout

Usage

JSON

{
  "name": "wait-desired-equals-healthy-tags",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.asg.probes",
    "func": "wait_desired_equals_healthy_tags",
    "arguments": {
      "tags": []
    }
  }
}

YAML

name: wait-desired-equals-healthy-tags
provider:
  arguments:
    tags: []
  func: wait_desired_equals_healthy_tags
  module: chaosaws.asg.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
tagslistnullNoASG TagsList of AWS tags for to identify ASG by tags instead of by names
timeoutfloat300NoTimeoutTimeout in seconds for the operation

tags are expected as:

[{
    'Key': 'KeyName',
    'Value': 'KeyValue'
},
...
]

Signature

def wait_desired_equals_healthy_tags(
        tags: List[Dict[str, str]],
        timeout: Union[int, float] = 300,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> int:
    pass