<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shaharkozi on Medium]]></title>
        <description><![CDATA[Stories by Shaharkozi on Medium]]></description>
        <link>https://medium.com/@shaharkozi12?source=rss-39e743248bd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*72MUnAk9tZkOugf1X7olZg.jpeg</url>
            <title>Stories by Shaharkozi on Medium</title>
            <link>https://medium.com/@shaharkozi12?source=rss-39e743248bd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:38:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shaharkozi12/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Chaos Engineering: A “Gameday” Approach Using AWS FIS]]></title>
            <link>https://medium.com/@shaharkozi12/chaos-engineering-a-gameday-approach-using-aws-fis-c6c48701caaa?source=rss-39e743248bd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6c48701caaa</guid>
            <category><![CDATA[system-resiliency]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Shaharkozi]]></dc:creator>
            <pubDate>Wed, 07 May 2025 09:51:36 GMT</pubDate>
            <atom:updated>2025-05-07T09:51:36.268Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction</h4><p>In an era demanding robust and resilient services, our team has embraced chaos engineering to proactively manage potential system failures. We use <strong>AWS Fault Injection Simulator (AWS FIS)</strong> to conduct <a href="https://wa.aws.amazon.com/wellarchitected/2020-07-02T19-33-23/wat.concept.gameday.en.html">Gamedays</a>, where we simulate outages to test and enhance our systems. This approach is ideal for teams using AWS, thanks to its seamless integration.</p><p>This article covers the basics of chaos engineering, details AWS FIS functionalities, introduces “Gamedays”, and provides implementation guidance.</p><blockquote>At Intuit, we’re really passionate about making sure our services are top-notch when it comes to reliability and security. I took the lead on rolling out our own chaos tool that pairs up with AWS FIS and Gamedays. It’s been a game-changer, really boosting how robust our services are and sharpening our team’s response when real challenges impact our systems.</blockquote><h4><strong>What is Chaos Engineering?</strong></h4><p>Chaos engineering proactively uncovers potential failures, preventing system outages by intentionally introducing faults to test system resilience and reliability. This strategy reveals hidden vulnerabilities, checks the efficiency of monitoring, automation, and alerts, and prepares teams and runbooks for unexpected scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dYJ0pXS5FBlMvttbSYCPzg.png" /><figcaption>Chaos Engineering Concept</figcaption></figure><h4>What is Gameday?</h4><p>In chaos engineering, a “Gameday” refers to an orchestrated event where disruptions or faults are intentionally induced into a system to test its resilience and the effectiveness of response procedures. Using tools like AWS FIS, teams create simulated real-world failures in a controlled setting. This practice allows teams to evaluate their system’s robustness and improve their incident handling capabilities. Gamedays play a vital role in strengthening service reliability and building confidence in disaster recovery strategies.</p><h4>What is AWS FIS?</h4><p>AWS Fault Injection Simulator (FIS) is a managed service by Amazon Web Services that supports chaos engineering. It allows controlled disruptions like server outages or API throttling to test system resilience. This tool is essential for development teams to uncover hidden vulnerabilities, ensure effective monitoring, and implement chaos engineering principles efficiently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yz1zjSn4A-Mq_WJgygs5A.png" /><figcaption>AWS FIS</figcaption></figure><h4><strong>Implementing Chaos Engineering </strong>utilizing<strong> AWS FIS</strong></h4><p>Join us as we walk you through the streamlined process of deploying AWS FIS via AWS CloudFormation, aimed at enhancing system resilience by simulating controlled outages on AWS EC2 servers.</p><p>We’ll outline the implementation in six steps: selecting the scenario, setting up AWS FIS with CloudFormation, testing in development, Gameday planning, execution, and a comprehensive post-event review.</p><p><strong>First step: Choose the Desired Scenario</strong></p><p>AWS provides a comprehensive <a href="https://docs.aws.amazon.com/fis/latest/userguide/scenario-library.html#viewing-a-scenario"><strong>scenario library</strong></a> that includes a variety of predefined scenarios. This resource simplifies the process of selecting the appropriate faults or disruptions for your system, streamlining the implementation of chaos engineering experiments with AWS FIS. For the purpose of this example, we have chosen the <strong>EC2 termination scenario</strong> to demonstrate how the process works and assess our system’s resilience against an unexpected instance termination.</p><p><strong>Second step: Create the FIS Experiment Template Using CloudFormation</strong></p><p>To set up the chaos engineering experiment, I utilized the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-fis-experimenttemplate.html">AWS CloudFormation documentation</a> to create the appropriate experiment template. Below is an example of a template configured to terminate a random EC2 instance:</p><pre># Parameters set up<br>Parameters:<br> ServiceName:<br>    Description: The service name<br>    Type: String<br>  EnvironmentName:<br>    Description: The environment name<br>    Type: String<br>  NumOfEC2ToTerminate:<br>    Description: Number of EC2 instances to terminate<br>    Type: Number<br><br>Resources:<br>  # Execution role<br>  FISOnEC2ExecutionRole:<br>    Type: &#39;AWS::IAM::Role&#39;<br>    Properties:<br>      RoleName: !Sub &#39;FIS-EC2-Exec-Role-${EnvironmentName}-${AWS::Region}&#39;<br>      AssumeRolePolicyDocument:<br>        Version: &#39;2012-10-17&#39;<br>        Statement:<br>          - Effect: &#39;Allow&#39;<br>            Principal:<br>              Service: &#39;fis.amazonaws.com&#39;<br>            Action: &#39;sts:AssumeRole&#39;<br>      ManagedPolicyArns:<br>        - &#39;arn:aws:iam::aws:policy/service-role/AWSFaultInjectionSimulatorEC2Access&#39;<br><br>  # Terminate EC2 Instances Experiment<br>  TerminateEC2Instances:<br>    Type: &#39;AWS::FIS::ExperimentTemplate&#39;<br>    Properties:<br>      Description: &#39;terminate a random instance&#39;<br>      Actions:<br>        terminateInstances:<br>          ActionId: &#39;aws:ec2:terminate-instances&#39;<br>          Targets:<br>            Instances: randomInstances<br>      Targets:<br>        randomInstances:<br>          ResourceTags:<br>            &#39;Name&#39;: !Ref ServiceName<br>          ResourceType: &#39;aws:ec2:instance&#39;<br>          SelectionMode: !Sub &#39;COUNT(${NumOfEC2ToTerminate})&#39;<br>      StopConditions:<br>        - Source: &#39;none&#39;<br>      Tags:<br>        Name: !Sub &#39;TerminateInstances-${EnvironmentName}-${AWS::Region}&#39;<br>        Scenario: &quot;TerminateInstances&quot;<br>        TargetService: !Ref ServiceName<br>      RoleArn: !GetAtt FISOnEC2ExecutionRole.Arn</pre><p><strong>To ensure that the FIS experiment runs smoothly, it’s crucial to attach the appropriate execution role.</strong> For this, I recommend using predefined AWS policies fitted to your specific scenario, as it streamlines the setup and enhances security compliance. This role allows the AWS FIS to perform actions on your behalf, following the best practices of least privilege.</p><p><strong>Third step: Test the Experiment in a Development Environment</strong></p><p>Before executing the experiment in the production environment, it’s crucial to first run it in a development setting. This step confirms that the scenario works as intended and allows for necessary adjustments, reducing potential risks during the actual production execution.</p><p><strong>Fourth step: Gameday Planning</strong></p><p>Once all previous steps have been successfully completed, we are ready to organize the Gameday execution. This phase involves several important sub-steps:</p><ol><li><strong>Coordination:</strong> Engage with all relevant stakeholders. This may include clients, other teams within your organization, and the team directly involved in the exercise. The level of coordination should be determined based on your specific organizational needs and the potential impact of the experiment.</li><li><strong>Background Story:</strong> A clear and relevant background story is crucial for the success of a Gameday. While the FIS experiment simulates symptoms like terminating an EC2 instance, real-world scenarios with various triggers such as software or infrastructure bugs or memory leaks might require different responses. Furthermore, actual incidents often include logs and essential monitoring data — elements that might be missing in a simulation but can be incorporated into the background story. Fleshing out this background story thoroughly makes the Gameday more realistic and engaging, emphasizing the importance of customized, scenario-specific responses. For example: “After a recent update, we found a memory leak that caused some of our servers to use too much memory. To prevent further issues, our system automatically shut down and restarted those servers.”</li><li><strong>Set Completion Criteria and Goals: </strong>It is essential to establish clear completion criteria that determine when to conclude the execution. For instance, this could be when a specific runbook has been fully executed, or when the on-call team has successfully ran a rollback. Additionally, setting specific goals for the execution is crucial. These goals may include exercising the team, testing the infrastructure’s automations, and ensuring that service availability remains above a certain threshold. Establishing these criteria and goals helps guide the execution process and measures its success effectively.</li><li><strong>Documentation of the Event: </strong>Creating a well-structured document to record the details of the event is crucial. This comprehensive documentation should include various key elements, such as on-call actions, automated responses (e.g., Auto Scaling Group launching a new instance), triggered alerts, and links to the runbooks used during the Gameday. Additionally, it can be customized to include more information based on the specific needs of your team and organization. This thorough documentation ensures all aspects of the event are recorded for review and future reference.</li></ol><p><strong>Fifth step: Gameday Execution</strong></p><p>After you have well prepared and coordinated the Gameday, now it’s time to run the Gameday.</p><p>The executor needs to enter into the AWS console and start the experiment:</p><ol><li>Search for AWS FIS resource.</li><li>Press on the <strong>Experiment templates </strong>tab.</li><li>Choose your experiment.</li><li>Select “Start experiment”.</li><li>Then confirm and start the experiment.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J8zSFudJlCclWoie7xYJAQ.png" /><figcaption>Start the execution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fD__qviiP_3PM2RYwADN0A.png" /><figcaption>Experiment is running</figcaption></figure><p><strong>Sixth Step: Concluding the Gameday</strong></p><p>After executing the Gameday, a retrospective meeting should be scheduled to review the event’s documentation and discuss its successes and areas for improvement. Action items, such as tickets for agreed-upon enhancements, should be generated from this meeting. For example: “create a ticket to adjust the alert threshold” or “create a ticket to update the runbook.”</p><h4>Real-Life Example</h4><p>In our effort to improve how reliable and tough our services are, we started using chaos testing in our AWS setup. We picked a few scenarios from the AWS FIS library that looked like real challenges our service might face, such as EC2 termination, CPU stress, and network disruption in the VPC. We connected these tests to real issues like memory leaks, high use by clients, and problems in specific regions to make them feel more authentic.</p><p>Running these tests turned out to be very helpful. They gave us a clear picture of how our system and team react under pressure. We found out some of our runbooks were out of date and that our alerts needed to warn us sooner when our CPU use was higher than normal. This early warning would help us address the issue proactively before it escalates to a critical level. These tests also helped our team practice responding quickly and getting to know the runbooks better.</p><p>From what we’ve learned, we’re planning to expand our testing to cover more use cases. Keeping our tests up-to-date is essential to ensure our services stay reliable and robust in any situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIGhjyHU6utqx-kX_PgLEg.png" /><figcaption>Example Diagram</figcaption></figure><h4>Expanding Chaos Engineering: Beyond AWS FIS</h4><p>AWS FIS represents just one aspect of a thorough chaos engineering strategy. It can be integrated into a broader framework that includes additional elements such as conducting performance tests during Gameday, generating reports on system behavior during the event, assessing client impact, and more.</p><h4>Conclusion: Strengthening Resilience with AWS FIS Gamedays</h4><p>In this article, we explored the pivotal role of chaos engineering through the AWS Fault Injection Simulator (AWS FIS) in boosting system resilience. AWS FIS is crucial for simulating disruptions and helping AWS-hosted systems withstand unexpected failures.</p><p>Through detailed testing and realistic Gamedays scenarios, we boost system reliability and prepare teams for real-world challenges. Adapting our strategies to evolving technology helps ensure our service framework remains secure and robust, crucial for thriving in today’s fast-paced tech landscape.</p><p>Ready to enhance your system’s reliability and security? Embrace chaos engineering principles and introduce them to your team. It’s time to turn challenges into opportunities for growth and stability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6c48701caaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>