← Back to insights

MLR Platform Migration — CloudFormation → Terraform

Project: February 2026 — April 2026

Executive Summary

The MLR platform faced increasing instability and operational overhead as ad-hoc console changes and manual hotfixes caused configuration drift. CloudOrbitAI executed a staged migration from CloudFormation to Terraform using a shadow-stack strategy to eliminate downtime, introduce Git-driven infrastructure, and provide repeatable deployment pipelines.

Key outcomes: 40% faster pipeline execution, zero-downtime migration of 120 infrastructure resources, and full IaC ownership with automated drift detection.

Background

The MLR platform is a customer-facing machine learning inference service hosted on AWS. It had grown organically with multiple CloudFormation stacks and bespoke console updates. As the product scaled, operational issues increased: unexpected configuration drift, slow CI pipelines, and no single source of truth for infra changes.

Challenges

Approach

We used a low-risk, iterative "shadow-stack" approach:

  1. Inventory and mapping: automated discovery of resources and tags, producing a canonical inventory and drift report.
  2. Design: Terraform modules mirroring production, with remote state stored in S3/DR-backed DynamoDB locks.
  3. Parallel provisioning: deploy Terraform-managed resources in parallel (shadow) without switching traffic.
  4. Cutover: incrementally switch services to the Terraform-managed endpoints and remove the legacy CloudFormation resources once verified.
  5. Validation & handover: automated tests, runbooks, and a knowledge transfer session for the MLR operations team.

Technical Details

AreaBeforeAfter
State ManagementCloudFormation stacksTerraform with S3 remote state + DynamoDB locks
Drift DetectionManual auditsterraform plan + infrastructure tests in CI
CI/CDManual steps, long warmupsGit-driven pipelines, automated testing, blue/green cutover
SecretsInline in templatesAWS Secrets Manager + KMS

Timeline

Outcome & Metrics

The platform is now easier to reason about, test, and scale — and the MLR team can reproduce environments reliably in staging and production.

Lessons & Best Practices

Customer Quote

“CloudOrbitAI migrated our infrastructure without any downtime and improved our deployment velocity significantly — their methodical approach gave us confidence at every stage.”

— VP Engineering, MLR Platform

Next Steps / Get Help

If your platform is showing signs of drift, slow deployments, or increasing operational cost, we can run a targeted assessment and propose a low-risk migration plan.

Request a Migration Assessment