Skip to main content
In this lesson you’ll run a practical demo using AWS Fault Injection Simulator (FIS) to deliberately introduce a controlled EC2 failure (stop an instance) and observe how your workload and operational processes respond. Why run FIS experiments?
  • Validate monitoring, automated recovery, and runbooks proactively instead of waiting for unplanned outages.
  • Surface hidden weaknesses in architecture, alerts, and team runbooks.
  • Improve system resilience through iterative experiments and remediation.
Overview of the flow:
  • Create the FIS IAM role with the permissions FIS needs to perform actions.
  • Create an experiment that targets a specific EC2 instance.
  • Start the experiment to trigger the fault (for example, stop the instance).
  • Observe the experiment timeline, action status, CloudTrail events, and the EC2 instance state.
Prerequisites
  • An IAM role that FIS can assume with permissions for the actions you plan to run (for example, ec2:StopInstances).
  • A target EC2 instance with a known Instance ID and the account/region visible in the console.
  • Appropriate console or CLI access to view CloudTrail and EC2 instance state.
Links and references How FIS works (high-level)
  1. Create an IAM role for FIS to assume that grants specific API permissions.
  2. Create an experiment template that defines targets and actions.
  3. Start the experiment — FIS assumes the role to call the targeted APIs.
  4. Observe the experiment timeline, action status, logs (CloudTrail), and the target resource states.
  5. Use the results to update monitoring, playbooks, and system design.
A screenshot of the AWS Management Console showing the AWS Resilience Hub / Fault Injection Service with a green banner confirming an experiment was started. The Actions summary lists a pending StopEC2Instance action (aws:ec2:stop-instances).
Step-by-step: Stop an EC2 instance with FIS
  1. Create the FIS experiment role
  • Create an IAM role with the actions required by your experiment (for stopping an instance, include ec2:StopInstances).
  • Add a trust policy allowing fis.amazonaws.com to assume the role.
  1. Create an experiment template
  • Define the target (the EC2 instance by instance ID or tag).
  • Define the action (for example, aws:ec2:stop-instances) and any parameters (like duration or wait-for-completion).
  1. Start the experiment
  • When you start the experiment, FIS assumes the role and invokes the API action(s) against the target resource(s).
  • The console displays an initiating banner and an action summary showing the invoked action and its current state (pending → running → completed).
What you’ll see in the console
  • The experiment page shows the experiment status, actions with IDs and timestamps, the resource targets, and links to CloudTrail events for each API call invoked by FIS.
As the experiment runs, the FIS experiment details page updates with action IDs, start times, end times, and status. This helps you correlate the experiment timeline with CloudTrail and instance state changes.
A screenshot of the AWS Management Console showing an AWS FIS experiment details page with an Actions summary listing an aws:ec2:stop-instances action, timestamps, and region (us-east-2). The browser header and account name "CloudWithDjango-Org" are visible.
Resource overview example
  • The experiment details include a Resource overview that lists the targeted resources, their ARNs, resource type, friendly target name, and account/region.
Example listing shown in the console:
Confirm the instance state
  • After the action runs, verify the EC2 console to confirm the instance state changed to Stopped (or another expected state depending on the action).
A screenshot of the AWS Management Console showing the EC2 Instances page with one instance listed named "WebServerA" (instance i-0d96cc...), its state shown as Stopped and instance type t3.micro. The top bar and Launch instances / Actions controls are visible.
Inspect logs and timeline
  • Use the FIS Timeline on the experiment details page to see remaining duration, actions performed for each target, and log events.
  • Click the CloudTrail events link per action to view the exact API calls FIS made — this is vital for auditing and for reproducing the steps via automation.
Once the experiment completes, the experiment status changes to Completed and you’ll see final timestamps for start and end.
A screenshot of the AWS Management Console showing an AWS FIS (Fault Injection Simulator) experiment details page for experiment EXPA1NX8wS1RxHfGtA. The page shows the experiment state as "Completed" and includes buttons like Refresh, Actions, and View CloudTrail events.
Best practices and safety
Always run FIS experiments in a controlled environment. Never run destructive actions on production resources without approvals, rollback plans, and thorough communication across teams.
Key concepts (quick reference)
  • Experiment template: configuration used by experiments (targets, actions, stop conditions).
  • Target: the resource(s) selected for testing (by ID, tag, or resource group).
  • Action: the simulated failure (for example, aws:ec2:stop-instances).
  • Experiment role: the IAM role FIS assumes to perform actions.
  • Experiment: the execution of a template against target resources, producing timeline, status, and logs.
Quick checklist before running an experiment Summary — end-to-end steps
  1. Create an IAM role for FIS with the required permissions.
  2. Create an experiment template and assign target(s).
  3. Define the action(s) to simulate the fault.
  4. Start the experiment and observe the timeline, action status, CloudTrail logs, and resource state.
  5. Review results, update monitoring/runbooks, and iterate on improvements.
Further reading

Watch Video