Spacelift and Atlantis solve the same surface problem — running Terraform from pull requests — but they aim at different teams. Atlantis is one Go binary you run on a VM with a webhook; Spacelift is a SaaS with stacks, dependency graphs, scheduled runs, drift detection, OPA policies, private workers, and a permission model. This article frames the decision the way we walk clients through it, and covers the parts of Spacelift that don’t reduce to a feature checklist.
How to verify
spacectl whoami
spacectl stack list
spacectl stack show --id my-stack
spacectl stack logs --id my-stack --run RUN-ID
# inside a Spacelift run shell:
terraform plan -no-color
spacectl run trigger --id my-stack
spacectl is the operator instrument; the UI is fine for one-off browsing, but anything you do twice should be scripted. If a stack run is stuck “queued” with no worker picking it up, the stack is pinned to a private worker pool and the pool has zero healthy workers — Spacelift will not silently fall back to the shared pool.
What’s happening
Atlantis answers one question: how do I plan and apply Terraform from a PR with a lock? The answer is short, self-contained, and you operate it yourself.
Spacelift answers a bigger question: how do I run Terraform/Pulumi/CloudFormation/Ansible across many teams and environments, with policy gates, scheduled drift detection, dependency graphs between stacks, ephemeral preview environments per PR, and worker pools scoped to specific cloud accounts? The answer is a SaaS plus optional private workers, billed per run.
The five Spacelift concepts that don’t have a clean Atlantis analog:
- Stack. A unit of state — repo + path + branch + worker pool + policies. Roughly equivalent to “one Atlantis project,” but a first-class object with its own permissions, schedules, and history.
- Worker pool. A set of self-hosted workers (Docker on EC2, Kubernetes pods, etc.) that execute runs. Pinning a stack to a pool means its credentials stay in your network.
- Policies. OPA Rego, but with multiple types:
planpolicies (allow/deny applies),loginpolicies (who can log in),accesspolicies (who can write to which stack),triggerpolicies (decide when a stack runs after a push),notificationpolicies (route alerts). - Run state machine. Runs have explicit phases (queued, preparing, planning, awaiting approval, applying, finished, failed). You can hook scripts into phase transitions.
- Drift detection. Scheduled
planthat compares state to reality, opens a tracked drift if it finds one, and optionally auto-reconciles.
The decision
Pick Atlantis when:
- One to three teams use Terraform.
- The repos are small (under ~20 projects total).
- You already run a small fleet of VMs and the operational overhead of one more is negligible.
- You don’t need drift detection, dependency graphs across stacks, or per-PR preview environments.
- Cost matters more than feature breadth; Atlantis is free.
Pick Spacelift when:
- More than three teams contribute Terraform to a shared estate.
- You need OPA-style policy enforcement that you don’t want to roll yourself.
- You need scheduled drift detection without building it.
- You want stack-to-stack dependencies (apply network stack before app stack on the same PR).
- You want per-PR ephemeral environments for review (Spacelift’s “test runs”).
- The team capacity to operate a CI/CD platform itself is the binding constraint.
Neither is a fit when:
- The IaC tool isn’t supported (Spacelift covers most; Atlantis is Terraform-shaped). Cloud-native shops standardized on Pulumi might consider /en/knowledge-base/pulumi-vs-terraform-decision/ and Pulumi Cloud instead.
- Air-gapped environment with no SaaS access — only Atlantis works.
Migration path Atlantis → Spacelift
We’ve done this for clients several times. The shape:
- Stand up Spacelift account and configure SSO against your IdP. Create policy library scaffolding (start with empty policies, fill in over time).
- Set up a private worker pool. A Helm chart on Kubernetes or a small ASG. The pool registers with Spacelift over a long-poll connection.
- Mirror one stack at a time. For each Atlantis project, create a Spacelift stack pointing at the same repo + path. Use Spacelift’s read-only mode initially — it plans but cannot apply. Diff the plans against Atlantis output for a week to build confidence.
- Move state backend? No — Spacelift uses your existing Terraform state backend (S3, GCS, Terraform Cloud, etc.). The state file does not move.
- Switch one stack to “apply enabled” at a time, removing the corresponding Atlantis webhook. Keep both running for that stack for one PR cycle to catch differences.
- Decommission Atlantis once the last stack is migrated. Keep the VM around for a month in case you need to inspect old PR comments.
The non-obvious gotcha during migration: Atlantis stores plan output in PR comments; Spacelift stores it in its UI. If your auditors trace decisions through PR history, you’ll want a webhook from Spacelift back to the PR that posts the plan summary — Spacelift can do this but it’s not on by default.
Common pitfalls
- Workers in the wrong network. Spacelift workers need outbound to
app.spacelift.ioand your VCS; they don’t need inbound. Don’t expose them. - Shared worker pool for prod and dev. Same blast radius as a shared Jenkins. Separate pools per blast-radius zone.
- Forgot
before_inithook forterraform initconfigs. Some backends need extra env vars; set them in the stack environment, not in the plan command. - Policy that blocks every plan. A
planpolicy that returnsdenyfor any condition stops every apply; debug by settingsample = trueon the policy first. - Drift auto-reconcile on. This will
applyto revert manual changes. Off by default in our deployments — alert on drift, decide per case.
We use Atlantis or Spacelift depending on the engagement size and the client’s preference; the operating model — webhook hygiene, policy library, worker pool isolation, drift handling — is the same either way and lives inside /en/services/managed-operations/. When clients outgrow Atlantis, we run the migration as a discrete project; when they start at scale, we usually go straight to Spacelift.