probeEC2

count_min_instances

Returns whether the number of instances matching the filters is superior to the min_count parameter

Activity as code

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

Typeprobe
Modulechaosaws.ec2.probes
Namecount_min_instances
Returnboolean

Usage

JSON

{
  "name": "count-min-instances",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.ec2.probes",
    "func": "count_min_instances",
    "arguments": {
      "filters": []
    }
  }
}

YAML

name: count-min-instances
provider:
  arguments:
    filters: []
  func: count_min_instances
  module: chaosaws.ec2.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
filterslistnullNoInstance FiltersList of key/value pairs to select instances
min_countinteger0NoMinimal Amount of InstancesDetermine if the there are at least that amount of instances

Signature

def count_min_instances(filters: List[Dict[str, Any]],
                        min_count: int = 0,
                        configuration: Dict[str, Dict[str, str]] = None,
                        secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass