AWS
suspend_processes
Suspends 1 or more processes on a list of auto-scaling groups
Detaches one or more random instances from an autoscaling group
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.asg.actions |
Name | detach_random_instances |
Return | mapping |
Usage
JSON
{
"name": "detach-random-instances",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.asg.actions",
"func": "detach_random_instances"
}
}
YAML
name: detach-random-instances
provider:
func: detach_random_instances
module: chaosaws.asg.actions
type: python
type: action
Arguments
Name | Type | Default | Required |
---|---|---|---|
asg_names | list | null | No |
tags | list | null | No |
instance_count | integer | null | No |
instance_percent | integer | null | No |
decrement_capacity | boolean | false | No |
One of:
One of:
decrement_capacity: boolean value to determine if the desired capacity of the autoscaling group should be decreased
tags
are expected as a list of dictionary objects:
[
{'Key': 'TagKey1', 'Value': 'TagValue1'},
{'Key': 'TagKey2', 'Value': 'TagValue2'},
...
]
Signature
def detach_random_instances(
asg_names: List[str] = None,
tags: List[dict] = None,
instance_count: int = None,
instance_percent: int = None,
decrement_capacity: bool = False,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass