Developer Tools · head to head
AWS CDK vs Gatsby

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

Gatsby
Web Development
Open-source React framework for building websites and apps
- 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 Gatsby lists react-based component development.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
- Where Gatsby falls short: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify.
How do AWS CDK and Gatsby differ?
AWS CDK and Gatsby differ on platforms and category (Developer Tools against Web Development). Only the attributes on which AWS CDK and Gatsby actually diverge.
Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).
Which features does each one have?
They share no listed features; 8 appear only for AWS CDK and 8 only for Gatsby. 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 Gatsby
- React-based component development
- GraphQL data layer
- Plugin and theme ecosystem
- Static site generation
- Server-side rendering
- Deferred Static Generation
- Headless CMS integration
- Cloud Functions support
What is each one used for?
AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Gatsby for marketing sites pulling content from a headless CMS. The jobs each tool is most often brought in to do.
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Gatsby
- Reusable internal infrastructure modulesnot Gatsby
- Serverless application stacksnot Gatsby
- Testing infrastructure with unit testsnot Gatsby
- Standardising environments across accountsnot Gatsby
Gatsby
- Marketing sites pulling content from a headless CMSnot AWS CDK
- Blogs and documentation sites built in Reactnot AWS CDK
- Static sites with image optimisation pluginsnot AWS CDK
- Migrating existing Gatsby Cloud sites to Netlifynot AWS CDK
Where do AWS CDK and Gatsby fall short?
AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Gatsby's: Gatsby Cloud hosting ended in August 2023 and was merged into Netlify. 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
Gatsby
- Gatsby Cloud hosting ended in August 2023 and was merged into Netlify
- The GitHub repository's releases section is empty, so release cadence is unclear
- Requires React and GraphQL knowledge; there is no visual editor
- Hosting, CMS and build services are paid separately
- Official hosting guidance now centres on Netlify
How much do AWS CDK and Gatsby cost?
AWS CDK is free to use; Gatsby 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.
Gatsby
FreeNo published plan breakdown. See the Gatsby review.
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 Gatsby if
- You need react-based component development.
- You want to start without paying.
- You work on Web, Windows, macOS, Linux.
- You also want graphql data layer.
Questions people ask
- Is AWS CDK or Gatsby better?
- It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Gatsby fits marketing sites pulling content from a headless CMS. AWS CDK starts at Free and Gatsby at Free.
- Which is cheaper, AWS CDK or Gatsby?
- AWS CDK starts at Free and Gatsby at Free.
- Does AWS CDK or Gatsby run on more platforms?
- AWS CDK runs on Windows, macOS, Linux. Gatsby runs on Web, Windows, macOS, 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 Gatsby is typically brought in for.
- What can AWS CDK do that Gatsby 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. Gatsby covers React-based component development, GraphQL data layer, Plugin and theme ecosystem, Static site generation.
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.
SourceGatsby: Is Gatsby free?
Yes. Gatsby is open source under the MIT License, and the project site lists no paid Gatsby plans. You pay separately for hosting and any CMS you connect.
SourceAWS 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.
SourceGatsby: What happened to Gatsby Cloud?
Netlify acquired Gatsby, Inc. in February 2023 and ended Gatsby Cloud in August 2023, folding it into Netlify. The Gatsby site offers migration paths to Netlify.
SourceAWS 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.
SourceGatsby: Does Gatsby support server-side rendering?
Yes. Wikipedia says version 4 added server-side rendering and Deferred Static Generation alongside static generation. The Gatsby site also mentions Cloud Functions.
SourceAWS 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.
SourceRelated 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 Docusaurus
- AWS CDK vs Remix
- AWS CDK vs Next.js
- AWS CDK vs Hugo
- AWS CDK vs Eleventy
- AWS CDK vs Astro
- AWS CDK vs Netlify
- AWS CDK vs React
- AWS CDK vs Base UI
- AWS CDK vs TanStack Start
- AWS CDK vs MUI
- AWS CDK vs esbuild
- AWS CDK vs Mantine
- AWS CDK vs Nuxt
- AWS CDK vs Rollup
- AWS CDK vs shadcn/ui
- AWS CDK vs Angular
- AWS CDK vs Vercel
- Gatsby vs Terraform
- Gatsby vs HCP Terraform
- Gatsby vs Atlantis
- Gatsby vs Pants Build
- Gatsby vs Frappe
- Gatsby vs Eclipse
- Gatsby vs Spacelift
- Gatsby vs Python
- Gatsby vs Backstage
- Gatsby vs Jitsu
- Gatsby vs Notepad++
- Gatsby vs Steampipe
- Gatsby vs iTerm2
- Gatsby vs JFrog Artifactory
- Gatsby vs Leafmap
- Gatsby vs LocalStack
- Gatsby vs OrbStack
- Gatsby vs PhpStorm
- Gatsby vs Docusaurus
- Gatsby vs Remix
- Gatsby vs Next.js
- Gatsby vs Hugo
- Gatsby vs Eleventy
- Gatsby vs Astro
- Gatsby vs Netlify
- Gatsby vs React
- Gatsby vs Base UI
- Gatsby vs TanStack Start
- Gatsby vs MUI
- Gatsby vs esbuild
- Gatsby vs Mantine
- Gatsby vs Nuxt
- Gatsby vs Rollup
- Gatsby vs shadcn/ui
- Gatsby vs Angular
- Gatsby vs Vercel
