DevOps & Infrastructure

British Airways Transforms Legacy Infrastructure at Scale Using Agentic AI and AWS Transform Custom

The aviation industry is increasingly reliant on complex, high-availability digital infrastructure to manage everything from flight operations to passenger experience. For British Airways (BA), the challenge of maintaining a massive, decades-old Java-based technology estate recently reached a critical inflection point. As the airline scaled its operations to serve over 40 million annual passengers across 200 global destinations, the technical debt associated with its legacy data center footprint threatened to stifle innovation. In a landmark collaboration with Amazon Web Services (AWS), British Airways has successfully deployed a pioneering strategy to modernize over 250 business services spanning 750 code repositories, utilizing the newly launched AWS Transform custom toolset to automate the migration to a cloud-native architecture.

The Weight of Legacy Infrastructure

For many years, the British Airways core Java platform served as the backbone of its digital commercial operations. However, as the digital landscape evolved, the rigid, monolithic nature of this architecture became a significant burden. The engineering team faced a perennial dilemma: dedicate the vast majority of their time to the maintenance, patching, and upkeep of legacy code, or risk falling behind in a competitive market that demands rapid feature deployment and high-speed customer service.

The move to cloud-native computing—specifically the shift from Amazon Elastic Compute Cloud (EC2) to Amazon Elastic Container Service (ECS) running on AWS Fargate and powered by energy-efficient AWS Graviton processors—represented the clear strategic goal. Yet, the sheer scale of the estate presented a daunting hurdle. A manual migration of 250 services would have required years of intensive engineering effort, diverting resources away from the development of new, value-added digital products.

Chronology of the Transformation

The journey toward modernization began following the successful completion of a broader migration of BA’s data center assets to the AWS cloud. With the foundation secured, the team initiated a series of Experience Based Acceleration (EBA) workshops. These collaborative sessions, facilitated by AWS and utilizing tools like Amazon Q Developer, allowed BA architects to map out a path for large-scale application refactoring.

The project gained significant momentum leading up to AWS re:Invent 2025. Upon the formal unveiling of AWS Transform custom, British Airways transitioned from pilot programs to active production deployment. The first transformed service went live in the production environment shortly thereafter, validating the efficacy of the agentic AI-driven approach. Since then, the airline has scaled the process, establishing a rigorous 20-step lifecycle that balances the precision of deterministic automation with the complex reasoning capabilities of agentic AI.

The Mechanics of the 20-Step Lifecycle

The transformation engine utilized by British Airways is divided into three distinct, carefully orchestrated phases. This structural approach ensures that the migration is not only fast but also repeatable, auditable, and secure.

Phase 1, the deterministic preparation stage, leverages GitHub Actions to conduct a deep audit of each repository. The system automatically identifies the live version of a service, catalogs dependencies, and extracts critical performance data—such as peak and mean traffic rates—from production logs. This intelligence is used to infer the necessary infrastructure sizing, resource thresholds, and observability requirements for the new containerized environment. By establishing a baseline of performance and regression tests before any code is modified, the team ensures they have a "known-good" benchmark for post-migration validation.

Phase 2 constitutes the core agentic transformation. Here, AWS Transform custom acts as an intelligent agent, performing the heavy lifting of code refactoring. This includes upgrading the codebase to Java 21, resolving legacy framework dependencies, and removing hard-coded version numbers that typically impede continuous integration and deployment (CI/CD) pipelines. By automating these complex tasks, the engine replaces months of manual developer work with a streamlined, AI-assisted process.

How British Airways is accelerating the modernization of its Java services | Amazon Web Services

Phase 3 concludes the cycle with deterministic testing and deployment. Once the code is pushed to GitHub, it is built and deployed into lower-level environments. The API gateway routing is updated, and the service is subjected to the same regression and performance test packs used in Phase 1. The final stage involves a multi-layered assurance process: human-in-the-loop code reviews, automated security and quality scanning, a service operations review, and final cybersecurity approval. Only after meeting these stringent quality gates is the service handed over for full-scale production.

Data-Driven Engineering Efficiency

The primary benefit of this approach is the drastic reduction in manual toil. By isolating the repeatable, deterministic steps from the complex, decision-heavy tasks handled by the agentic AI, British Airways has created a repeatable engine for modernization. This "separation of concerns" is a key architectural decision that mitigates risk.

Supporting data from early deployments suggests that the use of agentic AI significantly reduces the human error rate typically associated with large-scale refactoring. Furthermore, by standardizing the architecture on Amazon ECS and AWS Fargate, the airline is benefiting from improved auto-scaling capabilities and the increased performance-per-watt efficiency of AWS Graviton chips. This aligns with the airline’s broader goals of operational resilience and sustainability.

Leadership Perspectives

Gary Holland, Principal Platform Architect at British Airways, emphasized that the project was as much about cultural change as it was about technical upgrades. "Can AI really transform hundreds of code repositories at enterprise scale? That was the question everyone asked when we started this journey," Holland stated. He noted that the primary objective was to liberate engineering teams from the cycle of routine maintenance, allowing them to shift their focus toward high-value innovation.

Liz Wright, Director of Delivery for BA Digital Customer and Commercial, echoed these sentiments, highlighting the project’s strategic importance. "This is more than a technology upgrade. It is about building stronger, more resilient technology foundations for British Airways so our teams can deliver change more quickly and create better experiences for our customers," Wright said. She noted that the initial success has provided a blueprint that is now being applied across the wider digital platform.

Broader Industry Implications

The collaboration between British Airways and AWS serves as a case study for large-scale enterprise modernization in the age of generative and agentic AI. For the aviation industry—a sector characterized by massive data volumes, complex regulatory environments, and a low tolerance for downtime—the ability to modernize legacy systems without disrupting service is a critical competitive advantage.

The shift toward "AI-assisted refactoring" signals a maturing of the cloud migration market. Rather than simply moving applications "as-is" (rehosting), enterprises are increasingly using AI agents to refactor applications into cloud-native architectures (re-architecting) at a fraction of the historical cost. This trend is likely to influence how other global flag carriers and large-scale enterprises approach their technical debt.

By establishing a secure, repeatable framework that includes rigorous human oversight, British Airways has demonstrated that AI can be used responsibly to tackle the most complex legacy challenges. As the industry moves toward 2026 and beyond, the success of this initiative suggests that the gap between legacy "monolithic" enterprises and "born-in-the-cloud" digital competitors will continue to narrow.

The ongoing modernization efforts at British Airways continue to be closely watched by industry analysts as a benchmark for enterprise digital transformation. The integration of AWS Transform custom not only provides a technical solution to a specific architectural problem but also establishes a sustainable model for continuous technological evolution, ensuring that the airline remains agile in an increasingly digitized global aviation market.

Related Articles

Back to top button