action ASG

detach_random_volume

Detaches a random (non root) ebs volume from ec2 instances associated to an ASG

Activity as code

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

Typeaction
Modulechaosaws.asg.actions
Namedetach_random_volume
Returnlist

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

NameTypeDefaultRequired
asg_nameslistnullNo
tagslistnullNo
forcebooleantrueNo

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