In this tutorial, you’ll run a disk fill Fault Injection Simulation (FIS) on an EC2 instance in the “EKS pet site” group. You will: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.
- Record baseline metrics
- Configure the AWSFIS-Run-Disk-Fill SSM document
- Create and run an FIS experiment template
- Compare post-fault metrics against the baseline
Prerequisites
- EC2 instances tagged EKS pet site, running Amazon Linux or Ubuntu
- SSM Agent installed on target instances
- IAM role with permissions for SSM commands and CloudWatch logging
1. Record Baseline Metrics
Filter the running instances by name “EKS pet site” and select instance 03DF9.
| Metric | Baseline Value |
|---|---|
| CPU Utilization | ~4% |
| Network Out (Bytes) | 16–18 million |
2. Configure the Disk Fill SSM Document
Navigate to AWS Systems Manager and search for fis services.
fallocate to stress disk allocation and installs bc and fallocate if needed.

This SSM document does not uninstall dependencies after the test. To avoid repeated installs, pre-bake
bc and fallocate and set InstallDependencies=false.Input Parameters
| Parameter | Required | Default | Description |
|---|---|---|---|
| DurationSeconds | Yes | — | Duration of the disk fill stress (in seconds). |
| Percent | No | ’95’ | Percentage of disk space to allocate. |
| InstallDependencies | No | ’True’ | Install dependencies if missing (True/False). |
3. Create the FIS Experiment Template
- Open AWS Fault Injection Simulator (FIS) and click Create experiment template.
- Enter your AWS account, a name (e.g.,
ec2-disk-fill-test), and a description. - Under Actions, choose Add action:
- Name: disk-fill
- Action type: aws:ssm:send-command
- Document: AWSFIS-Run-Disk-Fill
- Parameters:
- Action timeout: 600 seconds
- In Targets:
- Resource type:
AWS::EC2::Instance - Resource IDs:
03DF9 - Selection mode: All
- Resource type:
- Assign an IAM role with SSM permissions. For logging, choose CloudWatch log group
FIS experiments. - Review and create the template.



4. Run and Monitor the Experiment
Start the experiment. Observe its state transition from Pending → Running → Completed.
| State | Description |
|---|---|
| Pending | Scheduled but not yet started. |
| Running | Disk fill stress is in progress. |
| Completed | Experiment finished; metrics recorded. |
Disk fill stress can cause system instability and data loss. Only run on non-production or isolated environments.