🎉 DevOps Interview Prep Bundle is live — 1000+ Q&A across 20 topicsGet it →
All Articles

Spacelift Review: Terraform and OpenTofu Automation Platform (2026)

Hands-on review of Spacelift — the Terraform and OpenTofu CI/CD platform for infrastructure teams. What it does better than Atlantis and Terraform Cloud, where it falls short, and whether it's worth the cost.

Shubham5 min read
Share:Tweet

If you run Terraform at scale — multiple teams, dozens of stacks, complex dependency graphs — you eventually hit the limits of what simple CI/CD pipelines and Atlantis can handle. Spacelift is one of the tools that targets exactly this problem.

I have spent time with Spacelift on a real infrastructure codebase with 40+ Terraform stacks across three environments. Here is an honest take on what works, what does not, and how it compares to the alternatives.

What Spacelift Is

Spacelift is a SaaS platform (with a self-hosted option) for running Terraform, OpenTofu, Pulumi, and other IaC tools in a managed environment. Think of it as Terraform Cloud with more flexibility and fewer HashiCorp-specific opinions, or Atlantis with more automation and visibility.

Key concepts:

  • Stacks: Each stack represents a Terraform/OpenTofu root module. You point Spacelift at a Git repository + directory, and it manages the plan/apply lifecycle.
  • Spaces: Logical groupings of stacks for team isolation (like Terraform Cloud's organizations, but hierarchical)
  • Policies: Open Policy Agent (OPA) rules that gate what can be applied and who can approve
  • Stack Dependencies: Define that Stack A must apply before Stack B — for cases like networking before EKS before apps

Setup Experience

Getting started is fast for simple cases. Connect your GitHub/GitLab account, point it at a repository, define a stack, and Spacelift creates a webhook that triggers plans on PRs.

yaml
# .spacelift/config.yml — Optional configuration file
version: "1"
stacks:
  - name: production-networking
    projectRoot: terraform/networking
    terraform:
      version: "1.8.0"
    labels:
      - environment:production
      - team:platform
 
  - name: production-eks
    projectRoot: terraform/eks
    dependsOn:
      - production-networking  # Won't apply until networking is applied
    terraform:
      version: "1.8.0"

The drift detection is automatic — Spacelift periodically runs plans and flags stacks where actual state diverges from the Terraform code. This is valuable in organizations where people make console changes.

What Spacelift Does Better Than Competitors

Stack dependencies: This is the killer feature. Terraform Cloud does not have it. Atlantis does not have it. Being able to say "apply eks-cluster only after vpc is applied successfully" removes an entire category of manual coordination work.

OPA policies: Spacelift's policy framework using Open Policy Agent is genuinely powerful. You can enforce things like:

  • Only certain people can approve production applies
  • Plans that destroy more than 5 resources must have manual approval
  • Resources with certain tags cannot be deployed to production
  • New IAM roles must be reviewed by the security team
rego
# Spacelift policy: require manual approval for destructive changes
package spacelift
 
deny[sprintf("Destroying %d resources requires manual approval", [count(destroys)])] {
    destroys := [r | r := input.terraform.resource_changes[_]; r.change.actions[_] == "delete"]
    count(destroys) > 3
}

Private worker pools: Instead of running Terraform in Spacelift's cloud, you run workers in your own VPC. This is critical for organizations with compliance requirements or private infrastructure that is not internet-accessible. Setup is a Docker container you run in your network.

OpenTofu support: First-class. Spacelift lets you switch a stack from Terraform to OpenTofu with a configuration change — no rebuilding pipelines.

What Falls Short

The pricing model is complex. Spacelift charges per worker and per run, with different tiers. For large organizations running hundreds of stacks daily, costs can be significant and hard to predict. Terraform Cloud Enterprise is similarly expensive but more predictable if you have a large seat count.

Self-hosted deployment is operationally heavy. The self-hosted version requires running Spacelift's backend services in your infrastructure. The documentation is good but it is not a simple Helm chart — expect meaningful setup time and ongoing maintenance.

The UI has a learning curve. The stack/space/policy hierarchy is powerful once you understand it, but onboarding engineers who are not already Terraform-fluent is harder than with Atlantis. Atlantis is simpler conceptually, even if it has fewer features.

Limited non-Terraform features. If you also run Ansible, shell scripts, or other tools in your infrastructure pipelines, Spacelift's support for those is present but less polished than the Terraform experience.

How It Compares

FeatureSpaceliftTerraform CloudAtlantis (self-hosted)
Stack dependencies✅ First-class❌ Not supported❌ Not supported
OPA policy engine✅ Excellent✅ Sentinel (proprietary)❌ No
Private runners✅ Yes✅ Yes (Enterprise)✅ Self-hosted
OpenTofu support✅ Yes❌ No✅ Yes
Self-hosted option✅ Yes❌ No (SaaS only)✅ Fully self-hosted
Drift detection✅ Yes✅ Yes (paid plans)❌ Not built-in
Free tierLimitedLimited (500 resources)Free (self-host cost)
Pricing modelPer run + per workerPer resource countInfrastructure cost only

Who Should Use Spacelift

Spacelift makes most sense for:

  • Platform engineering teams managing 20+ Terraform stacks with real dependency chains
  • Organizations that need OPA policies for compliance without adopting Sentinel (HashiCorp proprietary)
  • Teams that want to move from Terraform to OpenTofu without rebuilding their CI/CD
  • Companies with air-gapped infrastructure who need private runner pools

Spacelift is overkill for:

  • Small teams with a handful of Terraform workspaces
  • Teams that are fine with GitHub Actions + simple Atlantis setup
  • Organizations already on Terraform Cloud Enterprise with no immediate reason to migrate

Verdict

Spacelift is a genuinely good product for the right problem. Stack dependencies and OPA policies alone make it worth evaluating if you manage a large Terraform estate with compliance requirements.

The pricing and operational complexity are real barriers. Before committing, run the math on how many runs you would execute per month and compare against Terraform Cloud Enterprise pricing for your size — the right answer depends heavily on your specific situation.

Score: 8/10 — Best-in-class for enterprise Terraform automation. Not a replacement for simpler setups, but for the target use case, it delivers.


More infrastructure tool reviews? Read our Atlantis Terraform PR automation review and OpenTofu complete guide.

🔧

Today I Fixed

Short real fixes from production — posted daily

Browse fixes
Newsletter

Stay ahead of the curve

Get the latest DevOps, Kubernetes, AWS, and AI/ML guides delivered straight to your inbox. No spam — just practical engineering content.

Related Articles

Comments