DEV Community

Cover image for AWS Fault Injection Simulator [FIS] #how-to-use
Pancho Daskalov
Pancho Daskalov

Posted on • Updated on

AWS Fault Injection Simulator [FIS] #how-to-use

AWS FIS concepts

AWS FIS allows you to test the performance of an application or system under fault conditions by running experiments on your AWS resources. To conduct experiments, create an experiment template that outlines the actions, targets, and stop conditions. Use the template to run the experiment and monitor its progress until all actions are completed.

AWS FIS example

For the FIS experiment we've created an EC2 instance with the following parameters:

  • Platform: Amazon Linux

  • AMI ID: ami-06b09bfacae1453cb

  • AMI Name: al2023-ami-2023.1.20230629.0-kernel-6.1-x86_64

Image description

Now, we will move on to creating AWS FIS experiment which will have following set of actions:

  • create experiment template - this is broken down into several steps: Description and Name, Actions, Targets, Service Access, Stop Conditions, Logs, Tags

We need to provide description for our experiment, Name is optional here!

Image description

We add actions to an experiment template, which AWS FIS uses to run the experiment.

Image description

AWS FIS identifies all targets before starting any action and uses them throughout the experiment.

Image description

FIS requires permission to conduct experiments on our behalf.

Image description

Once we've completed all the steps required we can go ahead and click on the 'create experiment template'.

This will trigger the creation of the experiment template which once ready will show up in the experiment templates dashboard.

Image description

Then we need too select the experiment template and click on 'start experiment' in order to initiate the AWS FIS experiment.

Image description

You will be prompted with a window which warns you that you are about to 'perform destructive actions on your AWS resources.' Write 'start' in order to confirm the action!

Image description

Next, we need to switch over to the Experiments tab, as the experiment once initiated will be in a 'Running' state.

Image description

Now if we switch over to the EC2 instance dashboard, we will notice that the instance changed its status to 'Stopping' due to the AWS FIS experiment action to stop it.

Image description

Eventually, the ec2 instance comes to a complete stop and changes its status to 'Stopped'.

Image description


References: https://docs.aws.amazon.com/fis/latest/userguide/what-is.html

Top comments (0)