Developer Tools · head to head
AWS CDK vs Heroku

AWS CDK
Developer Tools
Open source framework for defining AWS infrastructure in programming languages
- From
- Free
- Free plan
- Yes
The short version
- AWS CDK is an Apache 2; Heroku is a cloud platform as a service.
- AWS CDK is free; Heroku starts at $5/mo.
- Only AWS CDK lists construct Library of reusable components; only Heroku lists dynos (containers).
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
- Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
How do AWS CDK and Heroku differ?
AWS CDK and Heroku differ on starting price (Free against $5/month), pricing model (Open-source against Subscription) and free tier (Yes against No). Only the attributes on which AWS CDK and Heroku actually diverge.
Not yet recorded: founded for AWS CDK.
Which features does each one have?
They share no listed features; 8 appear only for AWS CDK and 20 only for Heroku. 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 Heroku
- Git-based deployment
- Buildpacks
- Dynos (containers)
- Add-ons marketplace
- Postgres database
- Environment variables
- Logging
- API
What is each one used for?
AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Heroku for application hosting. The jobs each tool is most often brought in to do.
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Heroku
- Reusable internal infrastructure modulesnot Heroku
- Serverless application stacksnot Heroku
- Testing infrastructure with unit testsnot Heroku
- Standardising environments across accountsnot Heroku
Heroku
- Application hostingnot AWS CDK
- Database as a servicenot AWS CDK
- CI/CD pipelinesnot AWS CDK
- API deploymentnot AWS CDK
Where do AWS CDK and Heroku fall short?
AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Heroku's: there is no free dyno tier; the cheapest Eco dyno is $5 per month. 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
Heroku
- There is no free dyno tier; the cheapest Eco dyno is $5 per month
- Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
- Free SSL and 10 process types start at the Basic dyno at $7 per month
- Private and Shield dyno types require a Private Space, which is billed on top of the dynos
- Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
- Dyno prices are per dyno per month, so an app with several process types multiplies the bill
How much do AWS CDK and Heroku cost?
AWS CDK is free to use; Heroku starts at $5/mo. Plan by plan below, from each vendor's own pricing page.
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Heroku
$5/month- Eco Dyno$5/mo
- 0.5 GB RAM
- Git/Docker deploy
- Custom domains
- Basic Dyno$7/mo
- 0.5 GB RAM
- Always-on
- Free SSL
- Standard-1X Dyno$25/mo
- 0.5 GB RAM
- Horizontal scaling
- App metrics
- Standard-2X Dyno$50/mo
- 1 GB RAM
- Horizontal scaling
- App metrics
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 Heroku if
- You need git-based deployment.
- You work on Web, API, Workers.
- You also want buildpacks.
Questions people ask
- Is AWS CDK or Heroku better?
- It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Heroku fits application hosting. AWS CDK starts at Free and Heroku at $5/month.
- Which is cheaper, AWS CDK or Heroku?
- AWS CDK has a free tier; the other does not. Paid plans start at Free for AWS CDK and $5/month for Heroku.
- Does AWS CDK or Heroku run on more platforms?
- AWS CDK runs on Windows, macOS, Linux. Heroku runs on Web, API, Workers.
- Can I use AWS CDK for free?
- Yes. AWS CDK has a free tier, so you can try it without paying. Heroku starts at $5/month.
- 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 Heroku is typically brought in for.
- What can AWS CDK do that Heroku 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. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.
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.
SourceHeroku: How much does Heroku cost?
Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.
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.
SourceHeroku: What is the cheapest always-on Heroku plan?
The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.
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.
SourceHeroku: How is Heroku Postgres priced?
Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.
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 Render
- AWS CDK vs Porter
- AWS CDK vs Coolify
- AWS CDK vs Railway
- AWS CDK vs Qovery
- AWS CDK vs Fly.io
- AWS CDK vs Dokku
- AWS CDK vs Upsun
- AWS CDK vs DigitalOcean
- AWS CDK vs AWS (Amazon Web Services)
- AWS CDK vs Koyeb
- AWS CDK vs Google Cloud Run
- AWS CDK vs Puppet
- AWS CDK vs Buildah
- AWS CDK vs Contabo
- AWS CDK vs Crossplane
- AWS CDK vs Crusoe Cloud
- AWS CDK vs Infracost
- Heroku vs Terraform
- Heroku vs HCP Terraform
- Heroku vs Atlantis
- Heroku vs Pants Build
- Heroku vs Frappe
- Heroku vs Eclipse
- Heroku vs Spacelift
- Heroku vs Python
- Heroku vs Backstage
- Heroku vs Jitsu
- Heroku vs Notepad++
- Heroku vs Steampipe
- Heroku vs iTerm2
- Heroku vs JFrog Artifactory
- Heroku vs Leafmap
- Heroku vs LocalStack
- Heroku vs OrbStack
- Heroku vs PhpStorm
- Heroku vs Render
- Heroku vs Porter
- Heroku vs Coolify
- Heroku vs Railway
- Heroku vs Qovery
- Heroku vs Fly.io
- Heroku vs Dokku
- Heroku vs Upsun
- Heroku vs DigitalOcean
- Heroku vs AWS (Amazon Web Services)
- Heroku vs Koyeb
- Heroku vs Google Cloud Run
- Heroku vs Puppet
- Heroku vs Buildah
- Heroku vs Contabo
- Heroku vs Crossplane
- Heroku vs Crusoe Cloud
- Heroku vs Infracost

