Engagement led by Cloudsnap’s founding engineer

A multi-cloud LLM platform that can switch cloud and model vendors

A generative AI platform on AWS and Google Cloud, with LLM calls routed across several providers, failover, and AI spend kept under control.

Results

  • PortabilityThe platform can switch cloud and model vendors
  • SpendControlled AI spend
  • Model changesModel deprecations and provider migrations handled without production impact

The challenge

The company uses generative AI for payment integrity work in healthcare: processing documents and generating reports. In production, that depends on outside model providers. Models get deprecated, providers change, and inference spend needs limits.

It needed a platform that wasn’t tied to one cloud or one model vendor, with AI spend under control.

What we did

  1. Architecture. A multi-cloud AI platform: Amazon ECS on Fargate, S3 and Bedrock on AWS; Cloud Run, Batch and Firestore on Google Cloud.
  2. Inference. LLM inference pipelines across Bedrock, Claude, Gemini, OpenAI and other providers, with multi-provider routing and failover through LiteLLM.
  3. Spend control. Quotas and spend control on model usage.
  4. Workflows. Document-processing and report-generation workflows.
  5. Model lifecycle. Model deprecations and provider migrations handled without production impact.

How this kind of platform fits together

Our standard drawings of the services used here. They show the pattern, not the client’s actual architecture.

  • Requests
  • Rate limited
  • Failover
LLM routing: one gateway, several model providersFlow diagram. Your apps, such as chat, document pipelines and batch jobs, call one LLM gateway running LiteLLM in your cloud, with a key per team. The gateway routes requests to Amazon Bedrock, Google Vertex AI with Gemini, Azure OpenAI or the Anthropic API. It handles routing and failover, quotas per team and key, spend caps and budgets, retries and timeouts, and logs every request. A meter shows a team's spend this month below its cap. Latency, errors, tokens and cost per team flow to observability. In this example the primary provider, Bedrock, starts rate-limiting: the gateway fails over to the next provider in the list, Vertex AI, which serves the requests. Swapping a model or a provider happens behind the gateway, so the apps don't change.Your appsChat, documents, batchOne API, a key per teamSwap a model or providerbehind the gateway: yourapps don’t change.LLM gatewayLiteLLM, in your cloudRouting and failoverQuotas per team and keySpend caps and budgetsRetries and timeoutsEvery request loggedA team’s spend this monthCapAlerts before the cap, blocks at itAmazon BedrockClaude and other modelsGoogle Vertex AIGeminiAzure OpenAIOpenAI modelsAnthropic APIClaudeRate limitedFails over hereObservabilityLatency, errors, tokens, cost per teamLLM routing: one gateway, several model providersFlow diagram. Your apps, such as chat, document pipelines and batch jobs, call one LLM gateway running LiteLLM in your cloud, with a key per team. The gateway routes requests to Amazon Bedrock, Google Vertex AI with Gemini, Azure OpenAI or the Anthropic API. It handles routing and failover, quotas per team and key, spend caps and budgets, retries and timeouts, and logs every request. A meter shows a team's spend this month below its cap. Latency, errors, tokens and cost per team flow to observability. In this example the primary provider, Bedrock, starts rate-limiting: the gateway fails over to the next provider in the list, Vertex AI, which serves the requests. Swapping a model or a provider happens behind the gateway, so the apps don't change.Your appsChat, documents, batch; a key per teamLLM gatewayLiteLLM, in your cloudRouting and failoverQuotas per team and keySpend caps and budgetsRetries and timeoutsEvery request loggedA team’s spend this monthCapAlerts before the cap, blocks at itAmazon BedrockClaude and other modelsGoogle Vertex AIGeminiAzure OpenAIOpenAI modelsAnthropic APIClaudeRate limitedFails over hereObservabilityLatency, errors, tokens, cost per teamSwap a model or provider behind thegateway: your apps don’t change.
One gateway in your cloud: routing and failover across providers, quotas and spend caps per team, and every request measured.
Show the names on
A landing zone: one structure, the same on every cloudTree diagram of a landing zone. Your identity provider (Entra ID, Google Workspace or Okta) gives people single sign-on. Your organization sits at the top with guardrail policies attached; guardrails block risky actions such as public storage, disabled audit logs and resources in unapproved regions. Five branches hang below it, each in its own account, subscription, project or compartment: security tooling, the log archive, shared services (hub network, DNS and egress), production and non-production. Audit logs from every branch flow to the locked log archive. The names differ by cloud. AWS: an Organization, service control policies, IAM Identity Center, accounts, GuardDuty and Security Hub, CloudTrail and AWS Config. Azure: management groups, Azure Policy, Entra ID, subscriptions, Defender for Cloud, the Activity Log and diagnostics. Google Cloud: an organization, organization policies, Cloud Identity, projects, Security Command Center and Cloud Audit Logs. Oracle Cloud: a tenancy, Security Zones and IAM policies, OCI IAM identity domains, compartments, Cloud Guard, OCI Audit and Logging.Your identity providerEntra ID, Google Workspace or OktaSingle sign-onAWS OrganizationAzure management groupsGoogle Cloud organizationOracle Cloud tenancyGuardrails: Service control policiesGuardrails: Azure PolicyGuardrails: Organization policiesGuardrails: Security Zones, IAM policiesSign-in: IAM Identity CenterSign-in: Entra IDSign-in: Cloud IdentitySign-in: OCI IAM identity domainsGuardrails apply from the topThey block risky actions before they happen:public storage, disabled audit logs andresources in unapproved regions.Audit logs from every branch land in one locked archiveSecurity toolingGuardDuty, Security HubDefender for CloudSecurity Command CenterCloud GuardIts own accountIts own subscriptionIts own projectIts own compartmentLog archiveCloudTrail, AWS ConfigActivity Log, diagnosticsCloud Audit LogsOCI Audit, LoggingIts own accountIts own subscriptionIts own projectIts own compartmentShared servicesHub network, DNS, egressIts own accountIts own subscriptionIts own projectIts own compartmentProductionYour workloadsIts own accountIts own subscriptionIts own projectIts own compartmentNon-productionDevelopment and testIts own accountIts own subscriptionIts own projectIts own compartmentA landing zone: one structure, the same on every cloudTree diagram of a landing zone. Your identity provider (Entra ID, Google Workspace or Okta) gives people single sign-on. Your organization sits at the top with guardrail policies attached; guardrails block risky actions such as public storage, disabled audit logs and resources in unapproved regions. Five branches hang below it, each in its own account, subscription, project or compartment: security tooling, the log archive, shared services (hub network, DNS and egress), production and non-production. Audit logs from every branch flow to the locked log archive. The names differ by cloud. AWS: an Organization, service control policies, IAM Identity Center, accounts, GuardDuty and Security Hub, CloudTrail and AWS Config. Azure: management groups, Azure Policy, Entra ID, subscriptions, Defender for Cloud, the Activity Log and diagnostics. Google Cloud: an organization, organization policies, Cloud Identity, projects, Security Command Center and Cloud Audit Logs. Oracle Cloud: a tenancy, Security Zones and IAM policies, OCI IAM identity domains, compartments, Cloud Guard, OCI Audit and Logging.Your identity providerEntra ID, Google Workspace or OktaSingle sign-onAWS OrganizationAzure management groupsGoogle Cloud organizationOracle Cloud tenancyGuardrails: Service control policiesGuardrails: Azure PolicyGuardrails: Organization policiesGuardrails: Security Zones, IAM policiesSign-in: IAM Identity CenterSign-in: Entra IDSign-in: Cloud IdentitySign-in: OCI IAM identity domainsGuardrails block public storage, disabledaudit logs and unapproved regions.Security toolingGuardDuty, Security HubDefender for CloudSecurity Command CenterCloud GuardIts own accountIts own subscriptionIts own projectIts own compartmentLog archiveCloudTrail, AWS ConfigActivity Log, diagnosticsCloud Audit LogsOCI Audit, LoggingIts own accountIts own subscriptionIts own projectIts own compartmentShared servicesHub network, DNS, egressIts own accountIts own subscriptionIts own projectIts own compartmentProductionYour workloadsIts own accountIts own subscriptionIts own projectIts own compartmentNon-productionDevelopment and testIts own accountIts own subscriptionIts own projectIts own compartmentAudit logs from every branch land inthe locked log archive (right-hand line).
One organization, split by risk. Security tooling, the log archive, shared services, production and non-production each get their own account, subscription, project or compartment. Guardrails apply from the top, people sign in once through your identity provider, and every log lands in one locked archive.

Stack

  • Amazon ECS on Fargate
  • Amazon S3
  • Amazon Bedrock
  • Google Cloud Run
  • Google Cloud Batch
  • Firestore
  • LiteLLM
  • Anthropic Claude
  • Google Gemini
  • OpenAI

Related services

  • AI & LLM platforms

    Production LLM infrastructure on AWS, Google Cloud and Azure. Inference pipelines, routing and failover across providers, quotas, spend control.

  • AWS

    AWS landing zones on Control Tower, then ECS Fargate or EKS and managed operations. Built as code in your Git, at a fixed price.

  • FinOps

    We find the waste in your AWS, Azure, Google Cloud or Oracle Cloud bill and implement the fixes as code. A fixed-price FinOps Quick-Win Audit in 1–2 weeks.

More case studies

Recognize your situation?

Thirty minutes with an engineer who would do the work. We’ll tell you which of these paths fits, or whether you need any of them.

Or email hello@cloudsnap.io. We reply within one business day.