Prompt
I’m building a hybrid cloud system and need infrastructure definitions that work across providers
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
For a hybrid cloud system, the best fit is usually infrastructure as code (IaC) with tools that are cloud-agnostic or have multi-provider support.
Good options
1. Terraform / OpenTofu
- Best overall choice for multi-cloud infrastructure definitions.
- Uses a consistent declarative language.
- Supports many providers: AWS, Azure, GCP, Kubernetes, VMware, OpenStack, and more.
- Good for networking, compute, IAM, storage, and managed services.
Example use cases
- Define a VPC/VNet in one provider and a peered network in another
- Provision Kubernetes clusters across environments
- Standardize load balancers, databases, and IAM policies
2. Crossplane
- Good if you want to manage cloud resources through Kubernetes-style APIs.
- Lets you define infrastructure as Kubernetes custom resources.
- Useful when your platform team already runs Kubernetes.
- Works well for “platform engineering” style setups.
3. Pulumi
- Use general-purpose languages like TypeScript, Python, Go, or C#.
- Supports multiple clouds.
- Good if your team prefers real programming languages over DSLs.
4. Ansible
- Better for configuration management than core infrastructure provisioning.
- Can complement Terraform/OpenTofu for OS setup, app deployment, and post-provision config.
Recommended pattern for hybrid cloud
A common approach is:
- Terraform/OpenTofu for core infrastructure
- Ansible for machine configuration
- Kubernetes manifests or Helm for app deployment
- Optional: Crossplane if you want Kubernetes-native infrastructure control
Things to standardize
To make infra definitions portable across providers, define abstractions for:
- Network CIDRs and routing
- Instance types / sizing classes
- Storage tiers
- IAM roles and policy boundaries
- Secrets management
- Tagging/labels
- Naming conventions
- Region/zone mapping
Example strategy
If you want one codebase across AWS + Azure + on-prem:
- Use Terraform/OpenTofu modules with provider-specific implementations hidden behind a common interface
- Keep environment-specific values in separate variables/overlays
- Use remote state and separate workspaces or directories per environment
Recommendation
If you want the most practical and widely adopted solution:
Use Terraform or OpenTofu as the main hybrid-cloud infrastructure definition layer.
If you want, I can also provide:
- a reference architecture for hybrid cloud IaC, or
- a sample Terraform/OpenTofu module structure for AWS + Azure + on-prem.