Skip to content

Cross-Cloud Architecture for Organizations That Refuse Lock-In

Cross-cloud architecture pays off by making migration credible, which restores bargaining power with a cloud provider, not by actually migrating. Provider-neutral Terraform modules, Kubernetes compute, and adapter layers around cloud SDKs provide portability, but concentrate it on critical services because the abstractions carry ongoing maintenance cost.

01

What problem did this cross-cloud architecture solve?

The organization was spending heavily on a single cloud provider and had no negotiating power on pricing because migration was perceived as technically infeasible. The cross-cloud architecture restored negotiation leverage by making migration a credible option.

The financial services organization had built many services on AWS over several years. Every service used AWS-specific technologies: Lambda for compute, DynamoDB for storage, SQS for messaging, CloudFormation for infrastructure. When AWS increased pricing for their tier, the organization had no alternative. Migration was estimated to be a long and expensive effort. They were locked in, and AWS knew it. The business case for cross-cloud was not about actually migrating. It was about making migration possible so that the threat of migration was credible during contract negotiations.

02

How was the cross-cloud architecture designed?

The architecture used layered abstractions: infrastructure-as-code with provider-neutral modules, containerized workloads with Kubernetes as the compute platform, and application-level abstractions that isolated cloud-specific SDK usage to adapter layers.

Infrastructure Abstraction: I replaced CloudFormation with Terraform using provider-neutral module interfaces. Each infrastructure component (compute cluster, database, message queue, object storage) was defined as a module with a cloud-agnostic interface and cloud-specific implementations. Switching providers meant swapping the implementation module, not rewriting the infrastructure definition. The Terraform modules for AWS, Azure, and GCP were maintained in parallel, with CI tests verifying that each implementation produced equivalent functionality.

Compute Abstraction: All workloads migrated from Lambda to containerized services running on Kubernetes (EKS on AWS, AKS on Azure, GKE on GCP). The Kubernetes manifests were identical across providers. The only provider-specific configuration was the cluster provisioning, which was handled by the Terraform modules. This migration from serverless to containers increased baseline infrastructure cost modestly but eliminated the single largest lock-in vector.

Application Abstraction: Cloud-specific SDK calls (S3 client, DynamoDB client, SQS client) were isolated behind adapter interfaces. The application code used generic interfaces (ObjectStore, DocumentStore, MessageQueue). Provider-specific adapters implemented these interfaces. Switching providers required implementing new adapters (a modest amount of work per adapter) without touching business logic. This pattern is the same anti-corruption layer I described in integration architecture.

According to vendor lock-in analysis, the cost of switching providers increases exponentially with the depth of provider-specific integration. The abstraction layers linearize this cost by confining provider dependencies to well-defined adapter boundaries.

03

What were the measurable outcomes?

The cost overhead was the price of maintaining abstraction layers, running Kubernetes instead of serverless, and maintaining parallel Terraform modules. The negotiation savings came from the next contract renewal, where the organization demonstrated a working proof-of-concept on Azure (a subset of services running in parallel) and negotiated a discount that the previous renewal could not achieve. The estimated migration time dropped sharply because the abstraction layers confined the migration work to adapter swaps and Terraform module switches rather than application rewrites.

04

What would I change in hindsight?

I would have been more selective about which services to make portable and invested the savings in deeper portability for the most critical services rather than shallow portability for all of them.

Not every service needed cross-cloud portability. Internal tools, development utilities, and batch processing jobs with no vendor-specific dependencies did not benefit from the abstraction layers. They just inherited the complexity. If I were designing this again, I would classify services into 3 tiers: Tier 1 (revenue-critical, must be portable), Tier 2 (important, should be portable within 3 months), and Tier 3 (internal, no portability requirement). This would have concentrated the cost overhead on the services that mattered most and reduced overall architecture complexity.

I also underestimated the operational burden of maintaining parallel Terraform modules. Each provider’s implementation needed testing against that provider’s current API, which changed frequently. A dedicated part-time engineer was required to keep the modules current. For organizations considering this approach, budget for ongoing maintenance of the abstraction layers, not just their initial implementation. The architecture of portability requires the same ongoing investment as the cloud architecture itself.