<?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 Francesco Pio Barletta on Medium]]></title>
        <description><![CDATA[Stories by Francesco Pio Barletta on Medium]]></description>
        <link>https://medium.com/@f.barletta14?source=rss-133c46738a82------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vWWl18aL9UAk7iXjN57oQQ.jpeg</url>
            <title>Stories by Francesco Pio Barletta on Medium</title>
            <link>https://medium.com/@f.barletta14?source=rss-133c46738a82------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:25:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@f.barletta14/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[Implementing Chaos Engineering on AWS with Fault Injection Simulator]]></title>
            <link>https://medium.com/storm-reply/implementing-chaos-engineering-on-aws-with-fault-injection-simulator-fe88258a77d6?source=rss-133c46738a82------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe88258a77d6</guid>
            <category><![CDATA[dora]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-pill-by-storm-reply]]></category>
            <category><![CDATA[fault-injection-simulator]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <dc:creator><![CDATA[Francesco Pio Barletta]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 10:22:41 GMT</pubDate>
            <atom:updated>2025-07-31T10:22:41.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kVWnXNdzwn0594huD_3lvg.png" /></figure><h3><strong>Abstract</strong></h3><p>In highly regulated industries such as finance and insurance, ensuring operational resilience is a critical priority. This article presents a practical approach to implementing Chaos Engineering in the cloud using AWS Fault Injection Simulator (FIS). By injecting controlled failures into production-like environments, organizations can test system behavior under stress, uncover vulnerabilities, and validate disaster recovery strategies. Based on a real-world use case from a major Italian insurance group, the solution emphasizes automation, reusability, and compliance with the Digital Operational Resilience Act (DORA). The proposed architecture is modular and extensible, enabling tailored experimentation aligned with both technical and regulatory requirements.</p><h3>Introduction</h3><p>In an increasingly interconnected and regulated digital ecosystem, the focus on high availability (HA), disaster recovery (DR), and performance testing is not just a technical best practice — it’s a business-critical requirement. In heavily regulated sectors such as insurance and finance, continuously validating the operational resilience of IT infrastructure is essential for both service reliability and regulatory compliance.</p><p>This is where <em>Chaos Engineering</em> comes into play: the disciplined practice of injecting controlled failures into systems to observe their behavior under stress and verify their ability to recover. This article explores how AWS Fault Injection Simulator (FIS) templates can be leveraged to implement Chaos Engineering in the cloud, based on a real-world use case from one of Italy’s leading insurance groups. We demonstrate how to create automated, reusable templates that simulate failures in production-like environments, uncover hidden weaknesses, and validate existing mitigation strategies.</p><p>Beyond technical implementation, this approach supports the broader goals of operational resilience defined by the European DORA (Digital Operational Resilience Act) regulation. The solution is designed to be modular and extensible, enabling teams to tailor fault injection experiments to their specific infrastructure and compliance needs.</p><h3>What is a FIS Template?</h3><p>A <strong>FIS Template</strong> (Fault Injection Simulator Template) is a configuration used in AWS Fault Injection Simulator (FIS) to define fault injection experiments (<a href="https://aws.amazon.com/it/fis/">link to AWS documentation</a>). These experiments allow testing the resilience of applications by simulating various types of failures, such as instance loss, service interruption, or configuration changes. By using FIS templates, developers can identify and resolve weaknesses in their applications, thereby improving the reliability and availability of services.</p><h3>What can be done with a FIS Template?</h3><p>With a FIS Template, it is possible to:</p><ul><li><strong>Define Resources</strong>: Specify AWS resources (such as EC2, ECS, RDS, etc.) on which to perform the experiments.</li><li><strong>Configure Actions</strong>: Establish the actions to be executed during the experiment, such as terminating instances, stopping services, or performing database failovers.</li><li><strong>Set Selection Modes</strong>: Choose how to select the resources to include in the experiment, for example, by selecting all instances or a specific number.</li><li><strong>Log Experiments</strong>: Configure logging of experiments to Amazon CloudWatch or Amazon S3 to analyze results and improve operations.</li><li><strong>Manage Permissions</strong>: Use an IAM role to control access and permissions required to execute the experiments.</li></ul><p>To better understand the value of this module, let’s explore the architecture in depth.</p><p>This solution was designed to consolidate all key features into a single deployment unit: from defining FIS experiments to monitoring alarms, logging events, and notifying stakeholders. The following sections detail how each element contributes to making the module reliable, safe, and extensible.</p><h3>Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*yk_9ZNxkQ9IaO0oXOT8D3w.png" /><figcaption>Solution’s architecture</figcaption></figure><p>This module provisions a comprehensive and resilient architecture for automating chaos experiments using AWS Fault Injection Simulator (FIS). It is designed with observability, control, and safety in mind, ensuring that experiments can be executed, monitored, and halted gracefully in case of unexpected impact:</p><h4>1. FIS Experiment Template</h4><p>At the core of the architecture lies the <strong>FIS Experiment Template</strong>, which defines:</p><ul><li>The <strong>targets</strong>, such as EC2 instances, Auto Scaling Groups, or EKS workloads.</li><li>The <strong>actions</strong> to be performed (e.g., stop instance, throttle network, etc.).</li><li><strong>Stop conditions</strong>, which can optionally include CloudWatch alarms or manual triggers.</li><li><strong>Tags</strong>, metadata, and IAM roles required to execute the experiment.</li></ul><p>This resource is created and managed by the module, and can be referenced externally for manual or programmatic execution.</p><h4>2. Alarm-Aware Lambda Function</h4><p>To ensure operational safety, a <strong>Lambda function</strong> is deployed which accepts a list of <strong>CloudWatch alarm names</strong> as input. Its responsibilities include:</p><ul><li><strong>Polling alarm states</strong> or handling <strong>CloudWatch alarm state change events</strong>.</li><li>Evaluating if any of the defined alarms enter the ALARM state.</li><li>Invoking the StopExperiment API for FIS if an alarm is triggered during an active experiment.</li></ul><p>This function is automatically wired to a <strong>dedicated EventBridge rule</strong> that listens for state transitions of the specified alarms.</p><h4>3. EventBridge Rule for Alarm Monitoring</h4><p>An <strong>Amazon EventBridge rule</strong> is configured to match CloudWatch Alarm State Change events. When any of the monitored alarms transitions to an ALARM state, this rule triggers the Lambda function responsible for halting the FIS experiment.</p><p>This mechanism ensures that the chaos experiment is automatically stopped if it causes unintended service degradation.</p><h4>4. Observability and Logging</h4><p>All relevant logs and execution data are stored in two locations:</p><ul><li><strong>Amazon CloudWatch Logs: </strong>logs from the Lambda function &amp;FIS experiment lifecycle events.</li><li><strong>Amazon S3</strong>: raw logs or structured outputs from the FIS experiment for postmortem analysis or long-term archiving.</li></ul><p>This dual logging strategy ensures both real-time observability and historical traceability.</p><h4>5. Notifications via SNS</h4><p>A <strong>dedicated Amazon SNS Topic</strong> is provisioned and can be subscribed to via email or other endpoints (e.g., Lambda, webhook, PagerDuty). The topic is used to publish notifications for:</p><ul><li>Experiment <strong>start</strong>.</li><li>Experiment <strong>completion</strong> or <strong>early termination</strong>.</li><li><strong>Alarm-triggered stops</strong>.</li></ul><p>Users can subscribe to the topic during module instantiation by providing a list of email addresses or endpoints.</p><h4>6. Monitoring Dashboards</h4><p>The module also supports creation of <strong>CloudWatch Dashboards</strong> that visualize:</p><ul><li>The <strong>state and duration</strong> of running experiments.</li><li><strong>Resource-level metrics</strong> (CPU, memory, network I/O, etc.) for the targeted instances or services.</li><li><strong>Alarm statuses</strong> to correlate anomalies during the experiment.</li><li><strong>FIS experiment history</strong> for analysis and reporting.</li></ul><p>These dashboards provide stakeholders with real-time visibility into the experiment and its impact on the system.</p><h3>Next Steps</h3><p>While the implementation of AWS Fault Injection Simulator (FIS) templates enables structured fault injection and real-time validation of system resilience, the true transformative potential of such experiments lies in what comes <em>after</em> the execution. Traditionally, post-experiment analysis relies on engineers manually inspecting logs, monitoring metrics, correlating CloudWatch alarms, and identifying patterns of degradation or failure propagation. However, as cloud architectures grow in complexity, the time, expertise, and cognitive load required to interpret this data scale non-linearly.</p><p>This is where <strong>Generative AI (GenAI)</strong> becomes a strategic enabler. By integrating GenAI into the post-mortem analysis phase, we introduce a paradigm shift: transforming raw experimental data into actionable insights <em>automatically</em>, at scale, and with contextual understanding of architectural patterns and best practices.</p><p>Moreover, as European regulators push towards test-based resilience validation (as per DORA), such GenAI-driven post-analysis capabilities will become not just beneficial — but essential — for documenting organizational preparedness and demonstrating accountability in failure response.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe88258a77d6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/storm-reply/implementing-chaos-engineering-on-aws-with-fault-injection-simulator-fe88258a77d6">Implementing Chaos Engineering on AWS with Fault Injection Simulator</a> was originally published in <a href="https://medium.com/storm-reply">Storm Reply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User Migration: Azure AD to AWS Managed AD]]></title>
            <link>https://medium.com/storm-reply/user-migration-azure-ad-to-aws-managed-ad-cf106309e16e?source=rss-133c46738a82------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf106309e16e</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws-pill-by-storm-reply]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Francesco Pio Barletta]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 14:32:17 GMT</pubDate>
            <atom:updated>2024-10-02T14:32:17.050Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_kpdRtoe1lc7glaiYq4crA.png" /></figure><h3><strong>Abstract</strong></h3><p>This article outlines the migration of users and groups from <strong>Azure Active Directory (Azure AD)</strong> to <strong>AWS Managed Active Directory (AWS Managed AD)</strong> within a hybrid IT infrastructure. The environment includes on-premise resources synchronized with Azure AD via AD Connect, while the BI reporting solution is hosted on <strong>AWS EC2</strong>. The challenge lies in maintaining accurate and timely synchronization of user and group profiles between Azure AD and the AWS-based reporting application. To address this, an automated solution was developed utilizing <strong>AWS IAM Identity Center</strong>, <strong>Step Functions</strong>, and <strong>Lambda</strong>, which triggers operations that write to AWS AD using the <strong>LDAP library</strong>. Any errors are managed, and alerts are sent through <strong>SNS</strong> to notify developers. This solution enhances operational efficiency and security.</p><h3><strong>Introduction</strong></h3><p>In modern enterprise environments, managing users and groups across a hybrid infrastructure presents several challenges, particularly when involving both on-premise resources and cloud services. Organizations often rely on <strong>Active Directory (AD)</strong> for user authentication and access control, synchronized with cloud services like <strong>Azure Active Directory (Azure AD)</strong> to extend these capabilities to cloud-based applications. As businesses increasingly adopt multi-cloud and hybrid strategies, integrating user management across different cloud platforms becomes essential.</p><p>In this context, <strong>AWS Managed Active Directory (AWS Managed AD)</strong> provides a fully managed directory service that simplifies the process of extending on-premise AD identities into AWS environments. However, ensuring the synchronization of user profiles and groups between <strong>Azure AD</strong> and <strong>AWS Managed AD</strong> for cloud-based applications requires an automated, reliable solution.</p><p>This article explores a scenario in which an enterprise needs to synchronize user and group profiles from <strong>Azure AD</strong> — which is already synchronized with the on-premise AD — into an AWS-based reporting application hosted on <strong>Amazon EC2</strong>. Given that the reporting solution requires precise user and group data to manage permissions effectively, any delay or inaccuracy in synchronization can impact operations and security.</p><p>To address this, an automated synchronization solution was designed using <strong>AWS IAM Identity Center</strong>, AWS <strong>Step Functions</strong>, and AWS <strong>Lambda functions</strong>, ensuring that changes in Azure AD are reflected in AWS Managed AD in near real-time. The integration also includes error handling and developer notifications via <strong>SNS</strong>, ensuring operational efficiency and security within the environment. This article will explore the details of the solution, the challenges it solves, and the benefits it brings to hybrid IT infrastructure management.</p><h3><strong>Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nt_NjzIvh4glDhqn3Kcw4w.png" /><figcaption><em>Architecture diagram illustrating the automated synchronization process between Azure AD and AWS Managed AD</em></figcaption></figure><p>The solution architecture is designed to automate the synchronization of user and group profiles from <strong>Azure Active Directory (Azure AD)</strong> to <strong>AWS Managed Active Directory (AWS Managed AD)</strong>, ensuring seamless integration across the hybrid IT environment. The architecture leverages several AWS services to manage the process efficiently, handle errors, and notify developers when necessary.</p><p>The flow begins with users and groups managed in <strong>Azure AD</strong>, synchronized with the on-premise <strong>Active Directory</strong> through <strong>Azure AD Connect</strong>. The goal is to ensure that the reporting application hosted on <strong>Amazon EC2</strong> has up-to-date access to user and group information for accurate permissions management. The process involves several key steps to ensure user segregation and synchronization. Here’s a breakdown of the flow:</p><ol><li><strong>User Segregation with IAM Identity Center</strong>: The synchronization process starts with an event that segregates users in the respective AWS account using <strong>AWS IAM Identity Center</strong>. This step ensures that users are correctly identified and managed across the hybrid environment.</li><li><strong>Triggering Step Functions</strong>: Upon detecting a change in user or group profiles within Azure AD, an event is generated, which triggers an <strong>AWS Step Function</strong>. This orchestration service manages the flow of tasks involved in the synchronization process.</li><li><strong>Lambda Function for Directory Updates</strong>: The <strong>Step Function</strong> invokes a <strong>Lambda function</strong> that performs the necessary operations, such as writing or updating user and group information in <strong>AWS Managed AD</strong>. The Lambda function interacts with the directory using the <strong>LDAP library</strong>, ensuring that changes are applied accurately.</li><li><strong>Error Handling and Notifications</strong>: To ensure reliability, any errors encountered during the process are captured and handled appropriately. If an error occurs, the system triggers an alert via <strong>Amazon SNS</strong>, notifying developers of the issue. This allows for quick resolution and ensures minimal disruption to the application’s access management.</li></ol><p>This architecture automates the complex process of maintaining user and group synchronization between <strong>Azure AD</strong> and <strong>AWS Managed AD</strong>, enhancing both operational efficiency and security. By leveraging AWS’s scalable services, the solution provides a robust mechanism to ensure that user data is always current and accurate.</p><h4><strong>Event Handling with CloudTrail</strong></h4><p><strong>AWS CloudTrail</strong> plays a pivotal role in automating the synchronization process between <strong>Azure AD</strong> and <strong>AWS Managed AD </strong>by acting as the trigger for subsequent steps. CloudTrail captures various API events and enables automated workflows based on changes in the identity management system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*fQqqTMySXrhCFrfnAXfoEg.png" /><figcaption>Events API captured by CloudTrail</figcaption></figure><p>For example, when a new user is created in <strong>AWS IAM Identity Center</strong>, CloudTrail logs the <strong>CreateUser</strong> event. This event serves as a trigger to initiate the user synchronization process with <strong>AWS Managed Microsoft AD</strong>. By capturing and reacting to these events, CloudTrail ensures that new user information is immediately reflected in the directory service, maintaining alignment between the identity systems.</p><p>CloudTrail’s event logging capabilities automate and streamline the synchronization process, reducing the need for manual intervention and ensuring that identity and access management tasks are performed efficiently and accurately across the AWS environment. This automation enhances the overall reliability and consistency of identity management within the hybrid infrastructure.</p><h4><strong>Event Bus and EventBridge Rule</strong></h4><p>The <strong>Event Bus</strong> serves as the communication channel for transmitting events between AWS accounts. In this architecture, events generated by <strong>IAM Identity Center</strong> in the workload account are sent to an <strong>Event Bus</strong> set up in a different account.</p><p>To control the flow of these events, an <strong>EventBridge Rule</strong> is defined. The rule specifies the conditions for routing events from the <strong>Event Bus</strong> to specific targets, such as <strong>Step Functions</strong> or <strong>Lambda functions</strong>. For example, when an event related to user creation or modification is detected, the rule routes it to the appropriate service that handles the next step in the synchronization process.</p><p>By using <strong>EventBridge</strong> for event routing, the architecture ensures precise control over the flow and handling of identity-related events, enhancing the efficiency and scalability of the synchronization process across multiple AWS accounts.</p><h4><strong>Step Function Workflow</strong></h4><p>In this solution, the <strong>Step Function</strong> is designed to process aws.sso-directory events received from <strong>EventBridge</strong>. The events are routed to the Step Function based on the rules specified in <strong>EventBridge</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*Wb3lV40Jh3yxKCq4k-vuIA.png" /><figcaption>Step Function Workflow</figcaption></figure><p>The workflow begins with a Task that invokes a <strong>Lambda function</strong> using its ARN. This Lambda function receives the IAM event payload as input and processes the necessary synchronization tasks with <strong>AWS Managed AD</strong>.</p><p>If the Lambda invocation fails, the system automatically retries up to three times, with a 5-second interval between each attempt. This retry mechanism helps ensure robustness in case of transient errors or timeouts during the operation.</p><p>If the maximum number of retries is reached without success, the workflow transitions to the <strong>SNSErrorHandler </strong>state. This state is another Task that publishes an error message to an <strong>SNS topic</strong>, using the ARN specified in the SNS module. This notification ensures that developers are promptly alerted to any issues in the synchronization process, enabling faster troubleshooting and resolution.</p><h4><strong>AWS Managed Directory Service</strong></h4><p><strong>AWS Managed Directory Service</strong> is a fully managed solution for setting up and administering an Active Directory (AD) infrastructure on AWS. It provides a reliable and scalable implementation of AD, eliminating the need to manage on-premise infrastructure. This service acts as the destination for synchronizing users and groups from <strong>Azure AD</strong> via <strong>IAM Identity Center</strong>.</p><p>The synchronization process is secured by <strong>TLS</strong> (Transport Layer Security) over port 636, ensuring encrypted communication for directory operations. A <strong>Root Certificate Authority (RootCA)</strong> is configured to issue certificates for authenticating these secure connections, reinforcing the security of the directory transactions.</p><blockquote>To set up an Enterprise Root CA On Windows Server, you can use this <a href="https://thesecmaster.com/blog/step-by-step-procedure-to-set-up-an-enterprise-root-ca-on-windows-server">guide</a>.</blockquote><p>Additionally, the administrative credentials for accessing and managing the directory are securely stored and managed using <strong>AWS Secrets Manager</strong>, which automates credential rotation and provides access controls, enhancing the security and reliability of the overall system.</p><p>Additionally, the administrative credentials for accessing and managing the directory are securely stored and managed using <strong>AWS Secrets Manager</strong>, which automates credential rotation and provides access controls, enhancing the security and reliability of the overall system.</p><p>By leveraging AWS Managed AD, the solution ensures high availability, performance, and simplified directory management, fully integrated with AWS’s security best practices.</p><h3><strong>Conclusion</strong></h3><p>The integration of <strong>Azure Active Directory</strong> (Azure AD) with <strong>AWS Managed Active Directory</strong> (AWS Managed AD) through this automated synchronization solution represents a strategic improvement in managing user identities within a hybrid environment. By utilizing <strong>key AWS services</strong>, the solution provides a unified and consistent approach to identity management, which greatly enhances operational efficiency, security, and scalability.</p><p>Key advantages include the <strong>reduction of manual processes</strong>, which not only minimizes potential errors but also frees up valuable resources for other critical tasks. Additionally, the architecture’s ability to adapt and respond to changes ensures that user access remains accurate and up-to-date.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf106309e16e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/storm-reply/user-migration-azure-ad-to-aws-managed-ad-cf106309e16e">User Migration: Azure AD to AWS Managed AD</a> was originally published in <a href="https://medium.com/storm-reply">Storm Reply</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>