- AWS CLI installed and configured
- Permissions to create IAM roles and policies
- A Linux or MacOS terminal
1. Change to the AZ experiment directory
Navigate to the folder containing the experiment files:2. Define the trust policy
Open fis-az-experiment-policy.json and verify it grantsfis.amazonaws.com permission to assume the role:
3. Create the IAM role
Run the following command to create thefis-az-role with the above trust policy:
4. Review the FIS task policy
Next, review fis-az-task-policy.json, which grants FIS permissions to perform AZ failover operations. Key sections include:-
Auto Scaling group
-
Network ACL management
-
RDS failover and reboot
-
ElastiCache AZ power interruption
These permissions let FIS safely describe and modify Auto Scaling groups, manage network ACLs tagged for FIS use, fail over RDS clusters, reboot instances, and interrupt power in ElastiCache clusters.
5. Attach the task policy to the IAM role
Attach fis-az-task-policy.json to thefis-az-role so it can execute the experiment actions:
Next, proceed to Implement the FIS Experiment to launch the test.