action AZ:EKS

recover_az

Rolls back the subnet(s), EKS instance(s), ASG(s) that were affected by the fail_az action

Run it now
View details
Typeaction
Moduleazchaosaws.eks.actions
Namerecover_az
Returnbool

This function rolls back the subnet(s), EC2 instance(s), ASG(s) that were affected by the fail_az action to their previous state. This function is dependent on the state data generated from fail_az. Note that instances that are in terminated state will not be ‘rolled’ back.

Usage

JSON

{
  "name": "recover_az",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "azchaosaws.eks.actions",
    "func": "recover_az"
  }
}

YAML

name: recover_az
provider:
  func: recover_az
  module: azchaosaws.eks.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
state_pathstring/tmp/fail_eks_az.jsonNoLocal Path to OperationPath to a local file that holds the information of this operation, defined in fail_az action. Unless you need to run this action multiple times in the same experiment, you can ignore this field

Signature

def recover_az(
    state_path: str = "fail_az.{}.json".format(__package__.split(".", 1)[1]),
    configuration: Configuration = None,
) -> bool:
    pass