AWS Builder Center

ResilienceIQ: Building an AI-Powered Cloud Resilience Engineering Platform with AWS and Kubernetes

How I'm exploring Chaos Engineering, Kubernetes Self-Healing, and Generative AI to make cloud infrastructure more resilient.

Introduction

Modern cloud applications are expected to remain available even when infrastructure failures occur. But what happens when a Kubernetes pod crashes, CPU usage reaches its limit, network connectivity degrades, or a database becomes unavailable?
This question inspired me to work on ResilienceIQ, my final-year Computer Science and Engineering project.
ResilienceIQ, titled Autonomous Cloud Resilience Engineering — AI-Generated Fault Scenarios with Self-Healing Kubernetes, explores how Artificial Intelligence and Chaos Engineering can work together to evaluate and improve cloud infrastructure resilience.
The goal is to move beyond simply monitoring infrastructure and build a platform that can intentionally test failures, observe recovery behaviour, measure resilience, and generate AI-assisted root cause analysis.

1. The Problem We're Trying to Solve

In traditional cloud environments, monitoring tools help engineers identify errors, resource consumption, and service availability.
However, monitoring alone does not always tell us how well an application will recover from unexpected failures.
Some important questions are:
  • Will an application recover automatically after a pod crashes?
  • What happens when CPU or memory resources become exhausted?
  • How does network degradation affect application availability?
  • Can we measure how quickly infrastructure recovers?
  • Can AI help engineers understand why a failure occurred?
ResilienceIQ aims to explore these challenges through controlled fault injection and automated analysis.

2. What Is ResilienceIQ?

ResilienceIQ is an AI-assisted cloud resilience engineering platform designed around Kubernetes environments.
Its main objective is to:
  1. Generate or recommend controlled fault scenarios using AI.
  1. Execute approved chaos experiments.
  1. Observe Kubernetes behaviour during failures.
  1. Evaluate self-healing and recovery mechanisms.
  1. Calculate Mean Time to Recovery (MTTR).
  1. Generate a Resilience Score.
  1. Produce AI-assisted Root Cause Analysis (RCA).
The platform is designed to help developers and DevOps engineers understand not just whether their applications are running, but how effectively they handle failures.

3. System Architecture and Technology Stack

The project combines application development, cloud infrastructure, observability, automation, and AI.
Application layer
  • React.js for the application frontend.
  • Python Flask for backend services.
  • PostgreSQL for structured data storage.
Cloud and infrastructure
  • AWS EKS for Kubernetes orchestration.
  • AWS EC2 for compute infrastructure.
  • AWS S3 for object storage.
  • AWS CloudWatch for AWS infrastructure monitoring.
  • Docker for containerization.
  • Terraform for Infrastructure as Code.
DevOps and automation
  • GitHub Actions for CI/CD.
  • Argo CD for GitOps-based deployment.
Chaos Engineering and observability
  • Chaos Mesh and Litmus for controlled fault injection.
  • Prometheus for metrics collection.
  • Grafana for monitoring and visualization.
  • ELK Stack for log analysis.
Artificial Intelligence
  • Google Gemini API for AI-assisted scenario recommendations, impact analysis, and root cause analysis.

4. How the Platform Is Designed to Work

The proposed workflow consists of several stages.

Stage 1: AI-Assisted Fault Scenario Generation

The platform uses the Gemini API to recommend fault scenarios based on the target environment and selected experiment objectives.
Examples include:
  • Kubernetes pod crashes.
  • CPU exhaustion.
  • Memory pressure.
  • Network latency and packet loss.
  • Disk space exhaustion.
  • Database service outages.
  • Kubernetes node failures.
These scenarios are intended to be reviewed and approved before execution.

Stage 2: Controlled Chaos Engineering

Chaos Mesh or Litmus is used to execute selected experiments within the Kubernetes environment.
The purpose is to simulate controlled infrastructure failures and observe how applications and Kubernetes components respond.

Stage 3: Monitoring and Observability

During experiments, monitoring systems collect relevant infrastructure and application information.
Prometheus collects metrics, Grafana provides visual dashboards, and the ELK Stack supports log analysis.
AWS CloudWatch can also provide visibility into AWS infrastructure and resource behaviour.

Stage 4: Measuring Resilience

One important part of ResilienceIQ is evaluating how effectively an application recovers from failures.
Two important measurements are:
Mean Time to Recovery (MTTR):
The average time required to recover from failures.
Resilience Score:
A proposed scoring mechanism to represent system recovery behaviour based on experiment outcomes, availability, and recovery performance.

Stage 5: AI-Assisted Root Cause Analysis

After an experiment, collected metrics and logs can be analysed to generate an AI-assisted report.
The intended report includes:
  • Detected failure.
  • Observed infrastructure behaviour.
  • Potential root cause.
  • Recovery timeline.
  • Impact analysis.
  • Suggested improvements.
The objective is to help engineers understand failures more efficiently and improve future infrastructure configurations.

5. Why AWS Is Important in This Project

AWS provides the cloud infrastructure foundation for exploring real-world Kubernetes resilience.
Some of the key AWS services considered in this architecture are:
Amazon EKS: Provides managed Kubernetes infrastructure for running containerized workloads and testing resilience.
Amazon EC2: Provides compute resources for application and infrastructure workloads.
Amazon S3: Provides object storage for experiment reports and related artifacts.
Amazon CloudWatch: Helps monitor AWS resources and infrastructure behaviour.
Combining these services with Kubernetes and observability tools provides an opportunity to understand how cloud-native systems behave under different failure conditions.

6. Engineering Challenges and Learning Opportunities

This project brings together several challenging areas of modern cloud engineering:
  • Designing a distributed application architecture.
  • Managing Kubernetes workloads and infrastructure.
  • Automating infrastructure provisioning using Terraform.
  • Integrating Chaos Engineering tools.
  • Building monitoring and observability pipelines.
  • Connecting AI services with infrastructure analysis.
  • Designing safe and controlled fault-injection workflows.
It also highlights an important engineering principle: experiments that intentionally introduce failures must have clear boundaries, approval mechanisms, and recovery procedures.

7. Future Development Goals

As development progresses, the planned improvements include:
  • More intelligent fault scenario recommendations.
  • Automated experiment execution and reporting.
  • Improved resilience scoring.
  • Advanced AI-assisted root cause analysis.
  • Better monitoring dashboards.
  • Automated infrastructure deployment.
  • Improved security and experiment isolation.

Conclusion

ResilienceIQ represents my interest in solving practical problems at the intersection of Cloud Computing, DevOps, Kubernetes, Chaos Engineering, and Artificial Intelligence.
Through this project, I aim to understand how cloud-native systems behave during unexpected failures and how automation and AI can help engineers build more resilient infrastructure.
I'm continuing to explore AWS services, Kubernetes, Infrastructure as Code, CI/CD, and observability while developing this project as part of my final-year engineering journey.
I would love to connect with AWS developers, cloud engineers, and DevOps professionals to exchange ideas and learn from their real-world experiences.
What do you think is the biggest challenge in building self-healing and resilient cloud-native applications?
#AWS #AWSStudentBuilder #CloudComputing #DevOps #Kubernetes #ChaosEngineering #GenerativeAI #Terraform #CloudNative #ResilienceEngineering
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article