action Fault Injection Simulator

start_availability_zone_power_interruption_scenario

Run the 'AZ Availability - Power Interruption' scenario

Run it now
View details
Typeaction
Modulechaosaws.fis.actions
Namestart_availability_zone_power_interruption_scenario
Returnmapping

Usage

JSON

{
  "name": "start-availability-zone-power-interruption-scenario",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.fis.actions",
    "func": "start_availability_zone_power_interruption_scenario",
    "arguments": {
      "az": "",
      "tags": null
    }
  }
}

YAML

name: start-availability-zone-power-interruption-scenario
provider:
  arguments:
    az: ''
    tags: null
  func: start_availability_zone_power_interruption_scenario
  module: chaosaws.fis.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
azstringYesTarget Availability-ZoneAvailability zone to disrupt with a simulation of a complet power loss
tagsstringreliably=true,chaoseengineering=trueNoTagsComma-separated list of tags that will be used to help you identify this particular experiment
autocreate_necessary_rolebooleantrueNoCreate Necessary Role & PoliciesLet Reliably create the role and policies required for the experiment. If checked, leave the Role ARN field empty
role_arnstringNoRole ARNRole used to trigger the experiment, with sufficient permissions for all the enabled disruptions
durationstringPT30MNoPower loss durationDuration of the disruption, using an ISO 8601 format
target_iam_rolesbooleanfalseNoEnable IAM Roles DisruptionDisrupt IAM Roles. If this is enabled, the next field must also be set
iam_rolesstringNoIAM Roles to DisruptComma separated list of role ARNs to impact
target_ebs_volumesbooleantrueNoEnable EBS Volumes Disruption
target_ec2_instancesbooleantrueNoEnable EC2 Instances Disruption
target_asgbooleantrueNoEnable ASG Disruption
target_asg_ec2_instancesbooleantrueNoEnable ASG EC2 Instances Disruption
target_subnetbooleantrueNoEnable Subnets Disruption
target_rds_clusterbooleantrueNoEnable RDS Cluster Disruption
target_easticache_clusterbooleantrueNoEnable Elasticache Disruption
log_group_arnstringNoCloud Watch Role ARNCloud Watch role used to log the experiment
descriptionstringAffect multiple resource types in a single AZ to approximate power interruptionNoDescription
client_tokenstringnullNoClient Token

Signature

def start_availability_zone_power_interruption_scenario(
        az: str,
        tags: Union[str, Dict[str, str]],
        role_arn: Optional[str] = '',
        autocreate_necessary_role: bool = True,
        duration: str = 'PT30M',
        target_iam_roles: bool = False,
        iam_roles: Optional[List[str]] = None,
        target_subnet: bool = True,
        target_ebs_volumes: bool = True,
        target_ec2_instances: bool = True,
        target_asg: bool = True,
        target_asg_ec2_instances: bool = True,
        target_rds_cluster: bool = True,
        target_easticache_cluster: bool = True,
        log_group_arn: str = '',
        client_token: str = '',
        description:
    str = 'Affect multiple resource types in a single AZ to approximate power interruption',
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass