AWS
stop_random_instances
Terminates one or more random healthy instances associated with an ALB
Detaches a random (non root) ebs volume from ec2 instances associated to an ASG
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.asg.actions |
Name | detach_random_volume |
Return | list |
Usage
JSON
{
"name": "detach-random-volume",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.asg.actions",
"func": "detach_random_volume"
}
}
YAML
name: detach-random-volume
provider:
func: detach_random_volume
module: chaosaws.asg.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
asg_names | list | null | No | ASG Names | One or many ASG names as a JSON encoded list |
tags | list | null | No | ASG Tags | List of AWS tags for to identify ASG by tags instead of by names |
force | boolean | true | No | Force | Force the operation |
Signature
def detach_random_volume(
asg_names: List[str] = None,
tags: List[Dict[str, str]] = None,
force: bool = True,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
pass