Prompt
I'm building a multi-cloud setup and want one codebase for infrastructure; what should I look at?
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
If you want one codebase to manage infrastructure across multiple clouds, the main thing to look at is an Infrastructure as Code (IaC) tool that’s cloud-agnostic or has strong multi-cloud support.
Good options to evaluate
1. Terraform / OpenTofu
- Best-known choice for multi-cloud IaC.
- Works with AWS, Azure, GCP, Kubernetes, VMware, and many SaaS services.
- You define infrastructure in a common language (HCL).
- Strong ecosystem and lots of modules.
- OpenTofu is the open-source fork of Terraform if you want to avoid licensing concerns.
Why consider it:
Most teams use this as the default answer for multi-cloud infrastructure from one codebase.
2. Pulumi
- Uses real programming languages like TypeScript, Python, Go, C#, Java.
- Good if your team prefers general-purpose programming over declarative config.
- Supports multiple clouds and Kubernetes well.
- Can be easier for building abstractions and reusable components.
Why consider it:
Great if you want infrastructure logic to feel more like application code.
3. Crossplane
- Kubernetes-native infrastructure management.
- Lets you manage cloud resources through Kubernetes APIs.
- Useful if your platform is already centered on Kubernetes.
- Good for building internal developer platforms and self-service provisioning.
Why consider it:
Best when Kubernetes is already your control plane.
4. AWS CDK / Azure Bicep / Google Cloud Deployment Manager
- These are mostly cloud-specific, not ideal for one codebase across clouds.
- CDK can target multiple clouds indirectly in some cases, but it’s not the best pure multi-cloud answer.
What to look for in the tool
Cloud provider support
Make sure it supports the exact services you need in each cloud, not just compute/networking.
State management
- How does it track deployed resources?
- Can it handle remote/shared state safely across teams?
Module/component reuse
- Can you build reusable patterns for VPCs, clusters, databases, IAM, etc.?
Drift detection
- Can it detect when real infrastructure diverges from code?
Policy and governance
- Look for support for:
- approval workflows
- policy-as-code
- permissions boundaries
- compliance checks
Secrets handling
- Integration with Vault, cloud secret managers, or external secret stores.
Team workflow
- Supports CI/CD, code review, and environment promotion.
Abstraction level
- Too low-level can create duplication.
- Too abstract can hide cloud-specific differences that matter.
Practical recommendation
- If you want the most proven multi-cloud choice: Terraform or OpenTofu
- If you want real programming languages and more flexibility: Pulumi
- If you want Kubernetes as the control plane: Crossplane
One important caution
“Single codebase” does not mean “identical infrastructure everywhere.”
AWS, Azure, and GCP have different primitives, so you’ll still need:
- cloud-specific modules/adapters
- conditional logic by provider
- a clear abstraction layer
If you want, I can also give you:
- a decision matrix comparing Terraform/OpenTofu vs Pulumi vs Crossplane, or
- a reference multi-cloud repo structure for one codebase.