DEV Community

Spacelift team for Spacelift

Posted on

Infrastructure Orchestration Platform vs Internal Developer Platform

An internal developer platform (IDP) is the self-service layer developers use to ship software, made up of a portal, a service catalog, app delivery, and Golden Paths. An infrastructure orchestration platform is the engine behind it that runs, governs, and audits infrastructure as code (IaC).

Every IDP that provisions infrastructure has an orchestration layer, whether anyone designed it or not. If nobody did, developers wait days on Terraform PRs and your platform team maintains pipeline glue instead of shipping Golden Paths. The real decision is whether your platform team builds that layer or buys it.

What is the difference between an IDP and an infrastructure orchestration platform?

An IDP covers the whole software lifecycle, and application developers are its main users. An infrastructure orchestration platform covers the infrastructure part of that lifecycle in depth, from plan to audit, and platform engineers are its main users. Without an IDP, you lose discovery, onboarding, and consistency across services. Without an orchestration platform, you lose safe, governed, and repeatable infrastructure changes.

Teams usually build IDPs on portals like Backstage, Port, or Cortex and shape them around their own workflows, such as service catalogs, scaffolding, onboarding, scorecards, and deployment paths.

An infrastructure orchestration platform owns what happens after someone asks for infrastructure. It runs plan and apply across Terraform, OpenTofu, Pulumi, CloudFormation, Ansible, and Kubernetes. It manages state, enforces policy, issues cloud credentials, tracks drift, and records who changed what.

The word "orchestrator" causes confusion here. Platform orchestrators like Humanitec or Kratix decide how a developer's request turns into real cloud resources, without replacing the underlying IaC. An infrastructure orchestration platform like Spacelift executes and governs the IaC itself. The two sit at different depths in the stack, and many IDPs have neither in a production-grade form.

What happens when a developer requests an environment?

A single request crosses both layers. Take the request "give me a staging environment for the checkout service." It moves through seven steps.

  1. The developer fills in a form in Backstage, Port, or ServiceNow.
  2. A Golden Path maps the inputs to an approved template.
  3. The orchestration layer picks or creates the right stack in the right cloud account.
  4. Policy evaluates the plan, checking tags, regions, instance sizes, and approvals.
  5. The run gets short-lived cloud credentials, then applies.
  6. Outputs like the VPC ID flow to the stacks that depend on them.
  7. Drift detection watches the environment after it ships.

The portal owns steps one and two. Everything from step three onward is orchestration, and that's where most of the engineering work and risk sits.

What does it take to build the orchestration layer yourself?

You end up solving a list of infrastructure problems that have nothing to do with developer experience. Each one has to work for every IaC tool you support.

  • Run orchestration: This involves queueing and state locking so two merges don't race into production, plus a plan-then-apply split so a human can review before changes land.
  • Per-tool integration: Terraform, Pulumi, and Kubernetes each need their own run logic. The same Golden Path starts behaving differently depending on the tool behind it.
  • Credentials: Every run needs scoped, short-lived cloud access, not a static key sitting in a CI secret.
  • Policy and access: Rules have to evaluate against the actual plan, and permissions have to map to teams and environments.
  • Drift: Detecting it is a scheduled job. Remediating it safely needs its own policy gate, so an automated fix can't apply an unsafe change.
  • Dependencies: Stacks need to run in order and pass outputs downstream without copy and paste.
  • Audit: Every run needs a record of the change, the approver, and the policy decision.

A typical do-it-yourself version is workable. CI runners or Atlantis execute runs, an S3 backend with locking holds state, OPA or conftest checks plans, OIDC roles give each pipeline its own credentials, and a nightly scheduled plan catches drift.

It breaks down in three places: supporting more than one IaC tool; passing outputs between stacks; and producing an audit trail that ties the approver, the policy decision, and the change together. Those gaps don't close after launch because every new cloud service, IaC release, and provider change lands on your platform team.

How does an orchestration platform handle this?

It turns each item on that list into configuration you keep in Git. Here's what that looks like in Spacelift”

Policy runs against the real plan: This plan policy blocks untagged resources, including tags applied through AWS provider default_tags. It also warns on deletions and on drift reconciliation runs, which pauses those runs for human approval on stacks with autodeploy turned on.

package spacelift

import rego.v1

taggable := {"aws_instance", "aws_db_instance", "aws_s3_bucket"}
required_tags := {"owner", "cost_center"}

has_tag(after, t) if after.tags_all[t]
has_tag(after, t) if after.tags[t]

deny contains sprintf("%s is missing tags: %v", [rc.address, missing]) if {
    some rc in input.terraform.resource_changes
    rc.type in taggable
    "create" in rc.change.actions
    missing := {t | some t in required_tags; not has_tag(rc.change.after, t)}
    count(missing) > 0
}

warn contains sprintf("%s will be deleted", [rc.address]) if {
    some rc in input.terraform.resource_changes
    "delete" in rc.change.actions
}

warn contains "Drift reconciliation requires manual approval" if {
    input.spacelift.run.drift_detection
}
Enter fullscreen mode Exit fullscreen mode

The platform itself is code: The Spacelift Terraform provider defines stacks, the dependencies between them, and the outputs they pass. The autoattach label applies the policy above to every production stack. autodeploy = true makes clean runs apply automatically, so the warn rules are what stop a run for review.

Drift detection requires a private worker pool, and pinning worker_pool_id keeps later applies from resetting the stack to the public pool.

resource "spacelift_stack" "network" {
  name           = "checkout-network-prod"
  space_id       = spacelift_space.checkout.id
  repository     = "infra-network"
  branch         = "main"
  labels         = ["env:prod"]
  autodeploy     = true
  worker_pool_id = spacelift_worker_pool.private.id
}

resource "spacelift_stack" "cluster" {
  name           = "checkout-cluster-prod"
  space_id       = spacelift_space.checkout.id
  repository     = "infra-cluster"
  branch         = "main"
  labels         = ["env:prod"]
  autodeploy     = true
  worker_pool_id = spacelift_worker_pool.private.id
}

resource "spacelift_stack_dependency" "cluster_on_network" {
  stack_id            = spacelift_stack.cluster.id
  depends_on_stack_id = spacelift_stack.network.id
}

resource "spacelift_stack_dependency_reference" "vpc_id" {
  stack_dependency_id = spacelift_stack_dependency.cluster_on_network.id
  output_name         = "vpc_id"
  input_name          = "TF_VAR_vpc_id"
}

resource "spacelift_policy" "require_tags" {
  name   = "require-tags"
  type   = "PLAN"
  body   = file("${path.module}/policies/require-tags.rego")
  labels = ["autoattach:env:prod"]
}
Enter fullscreen mode Exit fullscreen mode

Golden Paths become versioned templates: Developers pick from approved inputs, and prod isn't one of them. The template is the convenience layer. Spaces and policy are the enforcement layer because anyone with write access in a Space can still create a stack by hand.

inputs:
  - id: service
    name: Service name
    type: short_text
  - id: environment
    name: Environment
    type: select
    options: [dev, staging]

stacks:
  - key: env
    name: ${{ inputs.service }}-${{ inputs.environment }}
    vcs:
      reference:
        value: main
        type: branch
      repository: golden-path-service-env
      provider: GITHUB
    vendor:
      terraform:
        manage_state: true
        version: "1.5.7"
Enter fullscreen mode Exit fullscreen mode

Terraform 1.5.7 is the last MPL-licensed release. For newer features, set workflow_tool: OPEN_TOFU under the terraform vendor to run OpenTofu instead.

Templates can also set a worker_pool and a drift schedules block, so stacks created from a Golden Path land on a private worker pool with drift detection from day one.

The rest of the list is built in. Spaces scope access by team and environment. Cloud integrations issue short-lived credentials for each run. Drift detection runs on a schedule, and reconciliation runs go through the same plan policies as any other tracked run.

How does orchestration plug into Backstage, Port, or ServiceNow?

The IDP stays at the front door, and the orchestration platform becomes the engine behind it.

Backstage

Spacelift's Backstage plugin lists the stacks visible to the integration key's Space with their status, and developers can trigger a rerun without leaving the portal. You configure it in app-config.yaml.

spacelift:
  hostUrl: '<your-subdomain>.app.spacelift.io'
  apiKey: ${SPACELIFT_API_KEY}
  apiSecret: ${SPACELIFT_API_SECRET}
Enter fullscreen mode Exit fullscreen mode

The integration key has admin access to the Space you select, and the plugin adds no user-level permissions inside Backstage. Because that access extends to the Space's child spaces, scope the key to the narrowest Space your Backstage users need, and restrict the plugin page with Backstage permissions.

ServiceNow

Attaching the ServiceNow integration to a Blueprint (the predecessor to Templates) creates a matching catalog item. When someone orders it, ServiceNow calls the Spacelift API and creates a stack from that Blueprint.

Spacelift Intent

Intent adds a third front door: an MCP server that lets developers request infrastructure in plain language through their LLM. Guardrails come from Intent policies, a separate Rego policy type that evaluates each resource operation. A project without an Intent policy allows every operation, so attach one before you open Intent up to developers. Once a policy is attached, any operation that matches neither an allow nor a deny rule waits for manual review. The same policies also govern Infra Assistant Build mode.

This split isn't a Spacelift invention. Humanitec describes the portal as the frontend of an IDP and its orchestrator as the backend, in Humanitec vs Port: how can they work together.

Which one does your team need?

Choose based on where the pain is, not on which category sounds right.

Start with an infrastructure orchestration platform when you see these signs:

  • Developers wait on Terraform PRs.
  • Your platform team writes more pipeline scripts than IaC.
  • You need policy, RBAC, and drift controls this quarter rather than after a build cycle.

Build or adopt a full IDP when these conditions apply:

  • Infrastructure is one of several problems, and you also need a service catalog, app deployment workflows, and onboarding paths.
  • You have a platform team of at least three to five engineers who can own it as a product.

Run both when you want one developer portal without rebuilding the engine underneath it. The portal owns discovery and requests, and the orchestration platform owns everything that touches a cloud account.

What are the limits of this approach?

  • Scope. Spacelift covers infrastructure orchestration. It won't replace your service catalog, scorecards, or incident tooling.
  • Private workers. Drift detection only runs on private worker pools, so plan to run your own workers if drift matters to you.
  • Integration depth. The Backstage plugin covers stack status and reruns, not self-service creation. ServiceNow works from Blueprints rather than Templates.
  • Lock-in. Your IaC stays plain Terraform, OpenTofu, or Pulumi, and you can keep state in your own backend with manage_state: false. Leaving means moving runs and policies, not rewriting infrastructure code.

Your IDP decides what developers can ask for, and your orchestration layer decides whether that request lands safely in a cloud account. Build the portal your developers need, and don't spend a platform team's year rebuilding the engine underneath it.

For a feature-by-feature view, read Spacelift vs Internal Developer Platforms. For real-world Golden Path patterns, see Self-Service Infrastructure with Spacelift.

Top comments (0)