Softwr

Developer Tools · head to head

AWS CDK vs Spacelift

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Spacelift logo

Spacelift

Developer Tools

Infrastructure-as-code orchestration for Terraform, OpenTofu, Pulumi and Kubernetes

From
Free
Free plan
Yes

The short version

  • AWS CDK is an Apache 2.
  • AWS CDK is free; Spacelift starts at $399/mo.
  • Only AWS CDK lists construct Library of reusable components; only Spacelift lists multi-tool orchestration.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
  • Where Spacelift falls short: three of the five tiers are quote-only, so a shortlist cannot be costed without entering a sales process with each vendor on it.

How do AWS CDK and Spacelift differ?

AWS CDK and Spacelift differ on pricing model and platforms. Only the attributes on which AWS CDK and Spacelift actually diverge.

Attributes where AWS CDK and Spacelift differ
AttributeAWS CDKSpacelift
Pricing modelOpen-sourceBy private worker and tier, not by user
PlatformsWindows, macOS, LinuxWeb, Self-hosted

Identical on both: starting price (Free), free tier (Yes), category (Developer Tools).

Which features does each one have?

They share no listed features; 8 appear only for AWS CDK and 6 only for Spacelift. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS CDK

  • Construct Library of reusable components
  • CDK CLI for synthesis and deployment
  • Programmatic CDK Toolkit Library
  • Support for TypeScript, JavaScript, Python, Java, C# and Go
  • Deployment through AWS CloudFormation
  • Custom and shareable constructs
  • Construct Hub registry
  • Open source under Apache 2.0

Only in Spacelift

  • Multi-tool orchestration
  • Policy as code
  • Private workers
  • Spaces
  • Blueprints
  • Drift detection

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Spacelift for estates needing private runners so cloud credentials never leave the network. The jobs each tool is most often brought in to do.

AWS CDK

  • Defining AWS infrastructure in TypeScript or Pythonnot Spacelift
  • Reusable internal infrastructure modulesnot Spacelift
  • Serverless application stacksnot Spacelift
  • Testing infrastructure with unit testsnot Spacelift
  • Standardising environments across accountsnot Spacelift

Spacelift

  • Platform teams running infrastructure changes through approval gates rather than through application CInot AWS CDK
  • Organisations standardising Terraform and OpenTofu across many teams with policy enforcementnot AWS CDK
  • Estates needing private runners so cloud credentials never leave the networknot AWS CDK
  • Teams wanting drift detection and reconciliation rather than plan-time checks alonenot AWS CDK

Where do AWS CDK and Spacelift fall short?

AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS CDK

  • Targets AWS only, so it does not provision resources on other clouds
  • Deploys through CloudFormation, so its resource coverage and limits apply
  • Infrastructure written in code can be harder to review than declarative templates
  • The AWS resources it creates are billed separately at standard AWS rates

Spacelift

  • Users are unlimited and private workers are metered, so deployment concurrency rather than headcount drives the bill, which inverts how most engineering budgets are built and is easy to under-forecast
  • There is no affordable paid entry point. The free tier stops at two users and the next tier is a five-figure commitment with nothing in between
  • Three of the five tiers are quote-only, so a shortlist cannot be costed without entering a sales process with each vendor on it
  • The self-hosted build lags the hosted one, has no public worker pool and lacks the Azure and Google Cloud integrations available in the SaaS product, with OIDC federation offered as the workaround
  • Stacks, Rego policies, Blueprints, Spaces and Spacelift-managed state are proprietary constructs, so leaving means rebuilding the orchestration layer rather than pointing it at a different runner

How much do AWS CDK and Spacelift cost?

AWS CDK is free to use; Spacelift has a free plan, with paid plans from $399/mo. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

Spacelift

Free
  • FreeFree
    • Two users
    • Public workers only
    • No private workers
  • Starter PlusOn request
    • Unlimited users
    • Two public workers
    • One to two private workers
  • BusinessOn request
    • Unlimited users
    • Three private workers
    • Quoted
  • EnterpriseOn request
    • Unlimited users
    • Five to thirty private workers
    • Self-hosted option

Which should you pick?

Choose AWS CDK if

  • You need construct library of reusable components.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want cdk cli for synthesis and deployment.

Choose Spacelift if

  • You need multi-tool orchestration.
  • You want to start without paying.
  • You work on Web, Self-hosted.
  • You also want policy as code.

Questions people ask

Is AWS CDK or Spacelift better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Spacelift fits platform teams running infrastructure changes through approval gates rather than through application CI. AWS CDK starts at Free and Spacelift at Free.
Which is cheaper, AWS CDK or Spacelift?
AWS CDK starts at Free and Spacelift at Free.
Does AWS CDK or Spacelift run on more platforms?
AWS CDK runs on Windows, macOS, Linux. Spacelift runs on Web, Self-hosted.
Can I use AWS CDK for free?
Both have a free tier, so you can try either at no cost before committing.
What is AWS CDK best used for?
AWS CDK is most often used for defining aws infrastructure in typescript or python, reusable internal infrastructure modules, serverless application stacks, testing infrastructure with unit tests. Of those, defining aws infrastructure in typescript or python and reusable internal infrastructure modules are not what Spacelift is typically brought in for.
What can AWS CDK do that Spacelift cannot?
AWS CDK covers Construct Library of reusable components, CDK CLI for synthesis and deployment, Programmatic CDK Toolkit Library, Support for TypeScript, JavaScript, Python, Java, C# and Go. Spacelift covers Multi-tool orchestration, Policy as code, Private workers, Spaces.

Answered from the vendors’ own pages

AWS CDK: Which languages does AWS CDK support?

The AWS documentation lists TypeScript, JavaScript, Python, Java, C# and .NET, and Go. Infrastructure is defined as constructs composed into stacks and apps.

Source
Spacelift: How is Spacelift priced?

By tier and by private worker count rather than per user. Users are unlimited on every paid plan. The published figure on the pricing page carries no period label, and the FAQ describes the tier as an annual subscription, so confirm the period in writing.

AWS CDK: How does AWS CDK deploy resources?

CDK apps are synthesised and deployed through AWS CloudFormation. The documentation states this gives predictable, repeatable deployments with rollback on error.

Source
Spacelift: Does it support OpenTofu?

Yes, and Spacelift sponsors the OpenTofu project, which is a substantive hedge for anyone avoiding Terraform under the Business Source Licence.

AWS CDK: Is AWS CDK free?

It is open source under the Apache 2.0 licence according to its GitHub repository. The AWS resources you provision with it are charged at their normal rates.

Source
Spacelift: Is there a self-hosted version?

Yes, described as carrying Enterprise functionality, but it is priced on request and lags the hosted product on cloud integrations.

AWS CDK: When was AWS CDK first released?

Wikipedia reports a developer preview announced in 2018 and general availability on 11 July 2019. CDK v2 followed in 2021.

Source
Spacelift: Why not just use the CI system we already have?

That is the real comparison. General purpose CI handles state, drift, approval gates and concurrency control for infrastructure poorly, and whether that is worth a five-figure floor depends on how much infrastructure change your organisation actually ships.

Spacelift: What happens to our pipelines if we leave?

They do not port. Rego policies, Blueprints, Spaces and managed state are Spacelift constructs and the orchestration has to be rebuilt elsewhere.

Share

Related pages

Other head to heads