Developer Tools · head to head
AWS CDK vs Starlight

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes

Starlight
Documentation
Documentation site framework built on Astro that ships no JavaScript to the reader by default
- From
- Free
- Free plan
- Yes
The short version
- AWS CDK is an Apache 2.
- Both are free.
- Only AWS CDK lists construct Library of reusable components; only Starlight lists file based routing.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
How do AWS CDK and Starlight differ?
AWS CDK and Starlight differ on pricing model, platforms and category (Developer Tools against Documentation). Only the attributes on which AWS CDK and Starlight actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 8 appear only for AWS CDK and 7 only for Starlight. 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 Starlight
- File based routing
- Pagefind search
- Internationalisation
- Component overrides
- Zero client JavaScript
- Expressive Code blocks
- Auto generated sidebar
What is each one used for?
AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Starlight
- Reusable internal infrastructure modulesnot Starlight
- Serverless application stacksnot Starlight
- Testing infrastructure with unit testsnot Starlight
- Standardising environments across accountsnot Starlight
Starlight
- A developer tool whose docs live in the same repository as the code and are reviewed in the same pull requestnot AWS CDK
- A team that already runs Astro for its marketing site and wants one build pipeline for bothnot AWS CDK
- Documentation that must be served from a CDN or an air gapped static host with no search backendnot AWS CDK
- A multilingual open source project that needs per locale content trees and untranslated page fallbacknot AWS CDK
Where do AWS CDK and Starlight 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
Starlight
- There is no editing interface, so every correction requires a git client, a Node install and a CI run, which puts documentation changes out of reach for anyone who does not already work in a repository
- Starlight versions track Astro versions, so an Astro major release becomes a documentation site migration on someone else timeline rather than yours
- Pagefind builds the whole search index at compile time, so build duration and index size grow with page count and large documentation sets pay for it on every deploy
- There is no analytics, no feedback widget and no page level rating built in, so measuring which pages fail readers means wiring a third party script yourself
- Component overrides are limited to the slots the theme exposes, and anything outside those slots means forking the theme and inheriting the merge burden on every upgrade
How much do AWS CDK and Starlight cost?
AWS CDK is free to use; Starlight is free to use. Plan by plan below, from each vendor's own pricing page.
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Starlight
Free- Open sourceFree
- MIT licence
- All features included
- Self hosted on any static host
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 Starlight if
- You need file based routing.
- You want to start without paying.
- You work on Web, macOS, Windows, Linux.
- You also want pagefind search.
Questions people ask
- Is AWS CDK or Starlight better?
- It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Starlight fits a developer tool whose docs live in the same repository as the code and are reviewed in the same pull request. AWS CDK starts at Free and Starlight at Free.
- Which is cheaper, AWS CDK or Starlight?
- AWS CDK starts at Free and Starlight at Free.
- Does AWS CDK or Starlight run on more platforms?
- AWS CDK runs on Windows, macOS, Linux. Starlight runs on Web, macOS, Windows, Linux.
- 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 Starlight is typically brought in for.
- What can AWS CDK do that Starlight 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. Starlight covers File based routing, Pagefind search, Internationalisation, Component overrides.
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.
SourceStarlight: Can a non technical writer publish a page without help?
No. There is no content management interface. Every change is a commit, a pull request and a build.
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.
SourceStarlight: Do I need to know Astro to use it?
Not for basic use. Markdown files and a config file are enough until you want custom components, at which point Astro knowledge becomes mandatory.
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.
SourceStarlight: Is search included or do I pay for it?
Included and free. Pagefind builds a static index at compile time. Algolia DocSearch is optional if you want hosted search instead.
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.
SourceStarlight: What happens when Astro releases a major version?
Starlight follows it, and your site needs a migration. Read the upgrade guide before pinning a version for a long lived project.
Starlight: Can I self host with no external services?
Yes. The output is static HTML, CSS and a search index. Nothing calls out at runtime unless you add it.
Related pages
Other head to heads
- AWS CDK vs Terraform
- AWS CDK vs HCP Terraform
- AWS CDK vs Atlantis
- AWS CDK vs Pants Build
- AWS CDK vs Frappe
- AWS CDK vs Eclipse
- AWS CDK vs Spacelift
- AWS CDK vs Python
- AWS CDK vs Backstage
- AWS CDK vs Jitsu
- AWS CDK vs Notepad++
- AWS CDK vs Steampipe
- AWS CDK vs iTerm2
- AWS CDK vs JFrog Artifactory
- AWS CDK vs Leafmap
- AWS CDK vs LocalStack
- AWS CDK vs OrbStack
- AWS CDK vs PhpStorm
- AWS CDK vs MkDocs
- AWS CDK vs VitePress
- AWS CDK vs Fumadocs
- AWS CDK vs Antora
- AWS CDK vs Mintlify
- AWS CDK vs Docsify
- AWS CDK vs Nextra
- AWS CDK vs Archbee
- AWS CDK vs Scalar
- AWS CDK vs HelpDocs
- AWS CDK vs Confluence
- AWS CDK vs Nuclino
- AWS CDK vs Adobe RoboHelp
- AWS CDK vs Doxygen
- AWS CDK vs Guidde
- AWS CDK vs Tettra
- AWS CDK vs Guru (knowledge platform)
- AWS CDK vs MediaWiki
- Starlight vs Terraform
- Starlight vs HCP Terraform
- Starlight vs Atlantis
- Starlight vs Pants Build
- Starlight vs Frappe
- Starlight vs Eclipse
- Starlight vs Spacelift
- Starlight vs Python
- Starlight vs Backstage
- Starlight vs Jitsu
- Starlight vs Notepad++
- Starlight vs Steampipe
- Starlight vs iTerm2
- Starlight vs JFrog Artifactory
- Starlight vs Leafmap
- Starlight vs LocalStack
- Starlight vs OrbStack
- Starlight vs PhpStorm
- Starlight vs MkDocs
- Starlight vs VitePress
- Starlight vs Fumadocs
- Starlight vs Antora
- Starlight vs Mintlify
- Starlight vs Docsify
- Starlight vs Nextra
- Starlight vs Archbee
- Starlight vs Scalar
- Starlight vs HelpDocs
- Starlight vs Confluence
- Starlight vs Nuclino
- Starlight vs Adobe RoboHelp
- Starlight vs Doxygen
- Starlight vs Guidde
- Starlight vs Tettra
- Starlight vs Guru (knowledge platform)
- Starlight vs MediaWiki
