> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Demo Prepare Experiment AZ

> Learn to create an AWS Fault Injection Simulator experiment template simulating an Availability Zone power interruption for an Amazon Aurora database.

In this article, you’ll learn how to create an AWS Fault Injection Simulator (FIS) experiment template that simulates an Availability Zone (AZ) power interruption for an Amazon Aurora database. You will:

* Identify the AZ of your Aurora writer instance
* Select and configure the appropriate FIS scenario
* Limit the blast radius with resource tags
* Define advanced parameters for timing
* Set up CloudWatch Logs for monitoring

## 1. Identify the Target AZ for Your Aurora Writer

1. Open the Amazon RDS console.
2. Select your Aurora cluster.
3. Note the Availability Zone (AZ) where the writer instance is running (e.g., **us-east-1a**).

<Frame>
  ![The image shows an Amazon RDS dashboard displaying a list of databases with their identifiers, status, roles, engine type, region, and size. There is a notification about Aurora I/O-Optimized and a suggestion to consider Blue/Green Deployment.](https://kodekloud.com/kk-media/image/upload/v1752871810/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/amazon-rds-dashboard-databases-notification.jpg)
</Frame>

## 2. Select the AZ Availability: Power Interruption Scenario

1. Navigate to the AWS Fault Injection Simulator (FIS) console.
2. Click **Scenario Library** to browse pre-built scenarios.
3. Choose **AZ Availability: Power Interruption**.

<Frame>
  ![The image shows the AWS Fault Injection Simulator (FIS) interface, specifically the Scenario Library, with options for different resilience testing scenarios like "AZ Availability: Power Interruption" and "EC2 Stress: CPU."](https://kodekloud.com/kk-media/image/upload/v1752871812/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/aws-fault-injection-simulator-scenarios.jpg)
</Frame>

## 3. Review Scenario Actions and Targets

The **AZ Availability: Power Interruption** template orchestrates the following actions in sequence:

* Pause EC2 instance launches
* Pause EBS I/O
* Adjust Auto Scaling Group (ASG) scaling

Targets include IAM roles, EC2 instances, and EBS volumes in the specified AZ.

<Frame>
  ![The image shows an AWS Fault Injection Simulator interface with actions and targets for a power interruption scenario, including "Pause-Instance-Launches" and "Pause-EBS-IO" actions. It highlights IAM roles and EBS volumes as targets, with a note about missing resource IDs.](https://kodekloud.com/kk-media/image/upload/v1752871813/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/aws-fault-injection-simulator-interface.jpg)
</Frame>

## 4. Configure Scenario Parameters

### Affected Availability Zone & IAM Role

* Set **Affected Availability Zone** to your Aurora writer’s AZ (e.g., `us-east-1a`).
* Specify the IAM role that FIS will assume to manage EC2 and EBS resources.

<Frame>
  ![The image shows a configuration screen for selecting scenario parameters in a cloud service, specifically for setting parameters related to availability zone impairments and power interruptions.](https://kodekloud.com/kk-media/image/upload/v1752871815/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/cloud-service-scenario-parameters-config.jpg)
</Frame>

### Targeting Tags

Limit the blast radius by targeting only resources with predefined tags.

| Tag Key       | Tag Value   |
| ------------- | ----------- |
| AZ-impairment | power-ready |

<Callout icon="lightbulb" color="#1CB2FE">
  Ensure your EC2 instances and EBS volumes are already tagged with these keys and values before running the experiment.
</Callout>

### Advanced Timing Parameters

Align these durations with your application’s RPO (Recovery Point Objective) and RTO (Recovery Time Objective).

| Phase      | Description                      | Duration   |
| ---------- | -------------------------------- | ---------- |
| DNS Impact | Time for DNS propagation effects | 2 minutes  |
| Outage     | Simulated power-off window       | 10 minutes |
| Recovery   | Time to restore power            | 5 minutes  |

<Frame>
  ![The image shows a configuration screen for setting parameters related to power impairment scenarios, including DNS impact, outage, and recovery durations.](https://kodekloud.com/kk-media/image/upload/v1752871816/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/power-impairment-configuration-screen.jpg)
</Frame>

## 5. Configure Logging to CloudWatch

1. Under **Log group**, search for `fis`.
2. Select the CloudWatch Logs group where FIS will send experiment logs.

<Frame>
  ![The image shows an AWS CloudWatch Logs interface where a user is selecting a log group. The search term "fis" is used, and several log groups are listed as matches.](https://kodekloud.com/kk-media/image/upload/v1752871817/notes-assets/images/Chaos-Engineering-Demo-Prepare-Experiment-AZ/aws-cloudwatch-logs-log-group-search.jpg)
</Frame>

## 6. Create and Review the Experiment Template

* Verify all parameters and targets are correct.
* Capture baseline (steady-state) metrics for comparison.
* Click **Create experiment template**.

<Callout icon="triangle-alert" color="#FF6B6B">
  Chaos experiments can disrupt production workloads. Always test in a staging environment and monitor your application during the injection.
</Callout>

***

## Links and References

* [AWS Fault Injection Simulator User Guide](https://docs.aws.amazon.com/fis/latest/userguide/)
* [Amazon RDS Aurora High Availability](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-best-practices.html)
* [Amazon CloudWatch Logs](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/chaos-engineering/module/e28ed74d-a0c9-4dbd-9950-2b6f83cd8511/lesson/70e53d2c-c40a-4a83-b2da-212da6c516bf" />
</CardGroup>
