Skip to main content
Crossplane vs Terraform for Platform Teams

Crossplane vs Terraform for Platform Teams

KU
· Founder & Chief Editor
• 8 min read•Updated •

A practical comparison of Kubernetes-native continuous reconciliation against the classic CLI-driven, state-file IaC model for platform teams.

Key takeaways

  • Terraform is the default for provisioning infrastructure: you run plan and apply against a state file, and nothing happens between runs.
  • Crossplane is a Kubernetes control plane that reconciles cloud resources continuously.
  • Choose Crossplane only when you are building a self-service internal platform on Kubernetes; many teams run Terraform underneath it.

Use Terraform unless you are building a self-service internal platform. Terraform is a CLI that changes infrastructure only when you run plan and apply. Crossplane turns a Kubernetes cluster into a control plane that reconciles cloud resources continuously. That buys drift correction and API-driven abstractions, at the cost of operating a distributed system.

Verified against

Crossplane v2.4 (v2.4.3), Terraform 1.17 (1.17.1, released 2026-10-28), against the docs.crossplane.io v2 "What's new" and Compositions pages and the developer.hashicorp.com Terraform CLI docs. Checked October 2026.

The two tools solve the same broad problem, declaring infrastructure as code, but they disagree about almost everything else. Understanding that disagreement is more useful than any feature checklist.

The fundamental difference

Terraform is a CLI-driven, run-based tool. You write HCL, run terraform plan to preview a diff against a state file, then terraform apply to make reality match. Nothing happens between runs. The state file is the source of truth about what Terraform believes exists, and a human or a pipeline decides when to reconcile.

Crossplane is a Kubernetes control plane. You install it into a cluster, and it extends the Kubernetes API with custom resources that represent cloud infrastructure. A managed resource like an RDS instance becomes a Kubernetes object. Controllers watch those objects and continuously drive the real cloud resource toward the declared spec. There is no apply command and no separate state file. The cluster's etcd is the state, and reconciliation is always running.

Run-based vs continuous: Terraform reconciles when you tell it to. Crossplane reconciles on a loop, forever.

OptionExecution modelState lives inManual driftOps overheadBest fit
Terraformplan/apply runs from CLI or CIState file (remote backend)Shown on next planA binary plus a backendTeams provisioning for themselves
CrossplaneControllers reconcile continuouslyKubernetes etcdReverted automaticallyA cluster, providers, functionsPlatform teams shipping self-service APIs
BothTerraform bootstraps, Crossplane servesSplit by layerDepends on layerHighest, but scopedLarge orgs with a platform mandate

Continuous reconciliation and drift

This is the headline distinction. With Terraform, if someone edits a security group in the console at 2am, nothing notices until the next plan runs and shows the diff. Whether that diff gets corrected depends on your pipeline cadence and whether anyone reads the output.

Crossplane treats that same console edit as drift and corrects it on the next reconcile loop. The declared spec wins. For teams that want infrastructure to be immutable against manual changes, this is a real advantage. It is also a real hazard: if someone made that change deliberately during an incident, Crossplane will happily revert it while you are still firefighting. Continuous reconciliation is a policy you choose, and you need to decide whether you want it.

Who Crossplane is actually for

Crossplane is aimed at platform teams building internal platforms, not at individuals provisioning a handful of resources. Its value shows up when you use Composite Resource Definitions (XRDs) and Compositions to build your own abstractions. You define a high-level API, say a PostgreSQLInstance, and a Composition that expands it into the actual RDS instance, subnet group, parameter group, and security rules. Application teams then request a database by submitting a small manifest, never touching the underlying cloud detail.

That self-service story is the point. If you are not building an abstraction layer for other teams to consume, most of Crossplane's machinery is overhead you will not use.

Crossplane v2 changed the shape of this. Composite resources are namespaced by default, so developers create the XR directly in their own namespace, and the new namespaced XRs do not support Claims. Native patch-and-transform was removed too: Compositions now run a mode: Pipeline of composition functions, with function-patch-and-transform covering the old style. Here is a trimmed Composition and the XR a developer would submit:

platform/postgres-composition.yaml
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
  name: postgres.aws
spec:
  compositeTypeRef:
    apiVersion: platform.acme.io/v1alpha1
    kind: PostgreSQLInstance
  mode: Pipeline
  pipeline:
    - step: patch-and-transform
      functionRef:
        name: function-patch-and-transform
      input:
        apiVersion: pt.fn.crossplane.io/v1beta1
        kind: Resources
        resources:
          - name: rds-instance
            base:
              apiVersion: rds.aws.m.upbound.io/v1beta1
              kind: Instance
              spec:
                forProvider:
                  region: us-east-1
                  engine: postgres
                  instanceClass: db.t3.medium
                  allocatedStorage: 20
                  skipFinalSnapshot: true
            patches:
              - type: FromCompositeFieldPath
                fromFieldPath: spec.parameters.storageGB
                toFieldPath: spec.forProvider.allocatedStorage
---
# apps/orders/orders-db.yaml
apiVersion: platform.acme.io/v1alpha1
kind: PostgreSQLInstance
metadata:
  name: orders-db
  namespace: orders
spec:
  parameters:
    storageGB: 50
  crossplane:
    compositionRef:
      name: postgres.aws

The developer sees only storageGB. Everything else is the platform team's opinion, encoded once. If you are reading a v1-era tutorial that uses spec.resources and Claims, treat it as legacy.

The Terraform equivalent puts the same opinion in a module:

modules/postgres/main.tf
resource "aws_db_instance" "postgres" {
  identifier          = "orders-db"
  engine              = "postgres"
  instance_class      = "db.t3.medium"
  allocated_storage   = var.storage_gb
  skip_final_snapshot = true
}

variable "storage_gb" {
  type    = number
  default = 20
}

Both encode the same abstraction. The difference is delivery: the Terraform module is consumed by running Terraform (and versioned through a registry, which has its own module versioning pitfalls), while the Crossplane XR is consumed by submitting YAML to an API that is always on.

The operational cost of running Crossplane

Terraform, at its simplest, is a binary you run. Crossplane is a distributed system you operate. That means a Kubernetes cluster dedicated to being a control plane, provider pods for each cloud, function packages, credentials management, upgrades of Crossplane and every provider, and monitoring of reconcile loops that can silently fall behind. When a provider pod crashes or a reconcile stalls, your infrastructure changes stop happening, and diagnosing why means reading controller logs and Kubernetes events.

That is no reason to avoid Crossplane, but it is an honest line item. You are trading Terraform's operational simplicity for a platform you have to keep alive.

RBAC and GitOps fit

Because Crossplane resources are Kubernetes objects, they inherit the ecosystem. Kubernetes RBAC governs who can create a database in which namespace, and v2's namespaced XRs make that mapping cleaner. Argo CD or Flux can sync your infrastructure manifests the same way they sync application manifests, and drift correction comes for free because that is what GitOps controllers and Crossplane both do. For a team already all-in on GitOps, Crossplane feels native.

Terraform's GitOps story exists through Atlantis, HCP Terraform, or CI pipelines, but it is bolted on rather than inherent. The plan/apply gate is a strength here: you get an explicit, human-reviewable diff before anything changes, which many teams value more than automatic reconciliation.

Maturity and learning curve

Terraform has more than a decade of adoption, a vast provider registry, mountains of documented patterns, and engineers who already know it. Crossplane is younger, and the v1 to v2 shift means much of the community material online describes APIs that no longer apply. Its providers cover most services but occasionally lag. The learning curve is steeper because you are learning Crossplane, composition functions, and Kubernetes API mechanics at once.

Making the decision

Choose Terraform when your team is provisioning infrastructure for itself, wants explicit plan/apply gates, values the mature ecosystem, or does not want to operate a control plane. This covers most teams honestly.

Choose Crossplane when you are a platform team building a self-service internal platform, you are already committed to Kubernetes and GitOps, and you specifically want continuous reconciliation and API-driven abstractions that other teams consume without touching cloud detail.

Many organizations run both: Terraform bootstraps the cluster and foundational accounts, and Crossplane runs on top to offer self-service resources. That is a legitimate architecture, not a compromise.

For a broader survey of where each fits alongside Pulumi, OpenTofu, and the rest, see our roundup of the best Infrastructure-as-Code tools.

Questions people ask

Can Crossplane replace Terraform?

Technically yes, since Crossplane providers can create most cloud resources Terraform can. In practice it rarely should. Something still has to create the Kubernetes cluster Crossplane runs on, and teams without a platform mandate gain little from operating controllers, providers and functions. Crossplane replaces Terraform well only for the self-service layer that application teams consume, not for bootstrapping accounts and networks.

Does Crossplane v2 still use Claims?

Only for legacy cluster-scoped composite resources. Crossplane v2 makes composite resources namespaced by default, and the docs state the new namespaced and cluster-scoped XRs do not support Claims. Developers create the XR itself in their namespace. v2 also removed native patch-and-transform, so Compositions use mode: Pipeline with composition functions such as function-patch-and-transform.

Can you use Terraform and Crossplane together?

Yes, and it is a common architecture in larger organizations. Terraform provisions the foundations, such as accounts, networking and the control-plane cluster, with reviewed plan/apply runs. Crossplane runs on that cluster and exposes higher-level APIs like a database or bucket that developers request with a manifest. Keep each resource owned by exactly one tool, or the two will fight over it.

The call we'd make

For most teams, Crossplane is not a Terraform replacement, and treating it as one leads to pain. Terraform remains the default for provisioning. Reach for Crossplane specifically when you are building a product for other engineers: an internal platform with self-service APIs, continuous reconciliation, and a Kubernetes-native surface. If that is your mandate, Crossplane's model pays off. If it is not, Terraform will do the job with far less to operate.

Sources

React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Crossplane vs Terraform for Platform Teams. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/crossplane-vs-terraform

Markdown

[Crossplane vs Terraform for Platform Teams](https://www.devopsness.com/blog/crossplane-vs-terraform) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

611 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.