Prompt
Crossplane vs Terraform for platform engineering
Latest observation
Here’s the practical take:
Short version
- Terraform is best when you want to provision infrastructure efficiently, with a strong ecosystem and broad provider support.
- Crossplane is best when you want to turn infrastructure into a Kubernetes-native platform API that developers can consume self-service style.
If you’re doing platform engineering, Crossplane often fits better for building an internal platform, while Terraform is often better for the platform team’s implementation layer.
Core difference
Terraform
- Declarative IaC tool
- Uses its own state and workflow
- Great for cloud resources, SaaS, and mature provider ecosystem
- Usually operated by platform/infra engineers
- Works outside Kubernetes
Crossplane
- Kubernetes controller that manages external resources
- Uses Kubernetes CRDs and reconciler loops
- Lets you define higher-level abstractions like:
PostgresInstanceManagedClusterAppEnvironment
- Strong fit if your platform already centers on Kubernetes
Where Terraform is stronger
1. Broader ecosystem
Terraform has a very large provider ecosystem and tends to support new cloud/SaaS services faster.
2. Mature operational model
- Good plan/apply workflow
- Easy to understand for infra teams
- Large talent pool and community
3. Great for one-off or foundational infra
Examples:
- VPCs
- IAM
- DNS
- accounts/projects/subscriptions
- SaaS setup
4. Better outside Kubernetes
If your platform is not Kubernetes-centric, Terraform is usually the more natural choice.
Where Crossplane is stronger
1. Kubernetes-native platform API
Crossplane shines when you want developers to request infrastructure using Kubernetes objects, GitOps, or custom abstractions.
Example:
apiVersion: platform.example.org/v1alpha1
kind: Database
metadata:
name: orders-db
spec:
size: small
engine: postgres
That’s a much nicer developer experience than exposing raw Terraform modules.
2. Composability
You can compose multiple resources into one abstraction:
- cloud network
- database
- secret
- IAM policy
- monitoring config
3. Control plane model
Crossplane is good when the platform team wants to publish APIs and continuously reconcile desired state.
4. GitOps-native workflows
Pairs well with Argo CD / Flux because everything is Kubernetes manifests.
Where Terraform is stronger for platform engineering
Terraform is often better if:
- your platform team manages shared infra directly
- you need quick coverage across many providers
- you want simpler adoption for infra engineers
- you don’t want Kubernetes to be the control plane for everything
- you care about a proven, less opinionated tool
A lot of platform teams still use Terraform to build the base layer and then expose self-service through portals, templates, or custom APIs.
Where Crossplane is stronger for platform engineering
Crossplane is a strong choice if:
- your company is already Kubernetes-heavy
- you want a “platform as a product” model
- you want developers to self-serve infra through Kubernetes
- you want to define opinionated abstractions
- you want a unified control plane for app + infra workflows
Tradeoffs to be aware of
Terraform tradeoffs
- State management can be painful at scale
- Self-service abstractions are possible but not its native strength
- Can become module-heavy and hard to govern
- Workflow is not inherently Kubernetes-native
Crossplane tradeoffs
- Steeper learning curve
- Smaller ecosystem than Terraform
- Not all providers are as mature
- Requires strong Kubernetes operational maturity
- Debugging can feel more complex due to controller behavior
A common pattern: use both
This is often the best answer.
Use Terraform for:
- foundational infra
- cloud account setup
- IAM
- networking
- bootstrap resources
- provider gaps
Use Crossplane for:
- developer-facing abstractions
- self-service environments
- managed databases, buckets, clusters
- composable platform APIs
In other words:
- Terraform builds the platform
- Crossplane exposes the platform
Decision guide
Choose Terraform if:
- you want maximum provider coverage
- your team is not Kubernetes-centric
- you want a familiar infra workflow
- you need fast, broad IaC adoption
Choose Crossplane if:
- Kubernetes is already your control plane
- you want platform APIs, not just IaC
- self-service developer experience is a priority
- you’re building an internal platform product
Choose both if:
- you want Terraform for foundation and Crossplane for self-service abstraction
My recommendation
For most platform engineering orgs:
- Start with Terraform for the underlying infrastructure layer
- Add Crossplane when you’re ready to expose opinionated, self-service platform APIs to developers
If your org is already deeply invested in Kubernetes and GitOps, you may be able to go Crossplane-first.
If you want, I can also give you:
- a side-by-side comparison table,
- a decision matrix by company maturity, or
- a reference architecture using both together.