Chaos Engineering
Building a Basic FIS experiment
Demo ASG based Architecture
In this guide, we’ll walk through building an Auto Scaling Group (ASG)–based architecture on AWS, using the Asia Pacific (Tokyo) region. By the end, you’ll have three core components in place: an EC2 launch template, an Auto Scaling group, and a CloudWatch Logs group—ready for a Fault Injection Service (FIS) experiment.
Component | Purpose | AWS Console Reference |
---|---|---|
EC2 Launch Template | Defines instance configuration and metadata tags | https://aws.amazon.com/ec2/ |
Auto Scaling Group | Manages instance scaling across AZs for HA | https://aws.amazon.com/autoscaling/ |
CloudWatch Logs Group | Aggregates logs from all instances | https://aws.amazon.com/cloudwatch/logs/ |
1. Create an EC2 Launch Template
Go to the Amazon EC2 dashboard in the Tokyo region.
Click Launch Templates → Create launch template.
Choose an Amazon Linux 2023 AMI (free tier eligible) and select the t3.micro instance type.
Under Advanced details, add resource tags:
- Key:
experiment
- Value:
ready
- Key:
Note
All instances launched from this template will inherit the tags—useful for identifying resources in your FIS experiment.
- Review settings and click Create launch template.
2. Configure the Auto Scaling Group
Navigate to Auto Scaling Groups → Create Auto Scaling group.
Select the Launch Template you just created, then choose your default VPC and two subnets across separate Availability Zones.
Set the group capacity:
Minimum Desired Maximum 1 1 4 This configuration ensures one instance under normal load and scales out to four if needed.
Warning
Distributing instances across AZs is critical for high availability—ensure you select at least two subnets in different zones.
- Leave remaining options at default and click Create Auto Scaling group.
3. Create a CloudWatch Logs Group
- Open the CloudWatch Logs console and click Create log group.
- Enter fis-experiment as the log group name and accept default settings.
4. Verify the Architecture
Return to the EC2 console. Your Auto Scaling group should have launched one t3.micro
instance with the tag experiment=ready
.
You now have a fully configured ASG-based architecture—optimized for high availability and ready for your AWS Fault Injection Service (FIS) experiment.
Watch Video
Watch video content