Softwr

Developer Tools · head to head

AWS CDK vs VitePress

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
VitePress logo

VitePress

Documentation

Vite powered static site generator for documentation, with instant dev server start and Vue components in Markdown

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 VitePress lists vite dev server.
  • Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.

How do AWS CDK and VitePress differ?

AWS CDK and VitePress differ on pricing model, platforms and category (Developer Tools against Documentation). Only the attributes on which AWS CDK and VitePress actually diverge.

Attributes where AWS CDK and VitePress differ
AttributeAWS CDKVitePress
Pricing modelOpen-sourceOpen source, no licence fee
PlatformsWindows, macOS, LinuxWeb, macOS, Windows, Linux
CategoryDeveloper ToolsDocumentation

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 VitePress. 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 VitePress

  • Vite dev server
  • Vue in Markdown
  • Local search
  • Default theme
  • Static output
  • Frontmatter driven layout
  • Markdown extensions

What is each one used for?

AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; VitePress for API reference pages that need live interactive component demos inside the prose. The jobs each tool is most often brought in to do.

AWS CDK

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

VitePress

  • A documentation set large enough that bundler based generators have made local preview too slow to bother withnot AWS CDK
  • A Vue or Vite project that wants its docs on the same toolchain the library itself usesnot AWS CDK
  • API reference pages that need live interactive component demos inside the prosenot AWS CDK
  • A team that wants client side search without paying for or configuring a hosted search indexnot AWS CDK

Where do AWS CDK and VitePress 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

VitePress

  • Customising beyond the default theme options requires writing Vue components, so a team with no Vue experience hits a wall at the first design request and cannot resolve it with configuration
  • There is no built in documentation versioning, so shipping docs for multiple released versions of a product means running separate builds or deploying separate sites and wiring the switcher yourself
  • Like every git based generator it offers no editing interface, so writers and support staff who spot an error cannot fix it without a developer workflow
  • The default local search builds its index in the browser at load time, so very large sites see a memory and startup cost on the reader side that Algolia would not impose
  • The plugin ecosystem is small compared with Docusaurus, so features such as blogging, tag pages or client side redirects are often hand built rather than installed

How much do AWS CDK and VitePress cost?

AWS CDK is free to use; VitePress is free to use. Plan by plan below, from each vendor's own pricing page.

AWS CDK

Free

No published plan breakdown. See the AWS CDK review.

VitePress

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 VitePress if

  • You need vite dev server.
  • You want to start without paying.
  • You work on Web, macOS, Windows, Linux.
  • You also want vue in markdown.

Questions people ask

Is AWS CDK or VitePress better?
It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; VitePress fits a documentation set large enough that bundler based generators have made local preview too slow to bother with. AWS CDK starts at Free and VitePress at Free.
Which is cheaper, AWS CDK or VitePress?
AWS CDK starts at Free and VitePress at Free.
Does AWS CDK or VitePress run on more platforms?
AWS CDK runs on Windows, macOS, Linux. VitePress 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 VitePress is typically brought in for.
What can AWS CDK do that VitePress 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. VitePress covers Vite dev server, Vue in Markdown, Local search, Default theme.

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
VitePress: Do I have to know Vue?

Not to write Markdown pages. Yes, as soon as you want to change the theme or add an interactive component.

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
VitePress: Does it handle versioned documentation?

Not natively. You build and deploy each version separately and link between them.

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
VitePress: Is search free?

Yes, the built in local search is free and needs no service. Algolia DocSearch is supported if you prefer hosted search.

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
VitePress: How does it compare on build speed?

Development start time stays roughly flat as pages are added because Vite does not bundle in development. Production builds still scale with page count.

VitePress: Can non developers contribute?

Only through the git hosting web editor, which still means a commit and a pull request.

Share

Related pages

Other head to heads