action ASG

attach_volume

Attaches ebs volumes that have been previously detached

Activity as code

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

Typeaction
Modulechaosaws.asg.actions
Nameattach_volume
Returnlist

Usage

JSON

{
  "name": "attach-volume",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.asg.actions",
    "func": "attach_volume"
  }
}

YAML

name: attach-volume
provider:
  func: attach_volume
  module: chaosaws.asg.actions
  type: python
type: action

Arguments

NameTypeDefaultRequired
asg_nameslistnullNo
tagslistnullNo

One of

tags are expected as a list of dictionary objects:

[
  {'Key': 'TagKey1', 'Value': 'TagValue1'},
  {'Key': 'TagKey2', 'Value': 'TagValue2'},
  ...
]

Signature

def attach_volume(
        asg_names: List[str] = None,
        tags: List[Dict[str, str]] = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> List[Dict[str, Any]]:
    pass