Developer Tools · head to head
AWS CDK vs Hanko

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

Hanko
Developer Tools
Open-source, passkey-first authentication and user management you can self-host or run in the cloud
- From
- Free
- Free plan
- Yes
The short version
- AWS CDK is an Apache 2.
- AWS CDK is free; Hanko starts at $29/mo.
- Only AWS CDK lists CDK CLI for synthesis and deployment; only Hanko lists passkeys, passwords and passcodes.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
- Where Hanko falls short: organisations, roles and permissions are not yet released.
How do AWS CDK and Hanko differ?
AWS CDK and Hanko differ on platforms. Only the attributes on which AWS CDK and Hanko actually diverge.
Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).
Not yet recorded: category for Hanko.
Which features does each one have?
They share no listed features; 8 appear only for AWS CDK and 8 only for Hanko. 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 Hanko
- Passkeys, passwords and passcodes
- Social and OAuth login
- MFA with TOTP and security keys
- SAML enterprise SSO
- Hanko Elements web components
- Webhooks and admin API
- Server-side sessions and revocation
- Self-hosting or managed cloud
What is each one used for?
AWS CDK is most often brought in for defining AWS infrastructure in TypeScript or Python; Hanko for passkey-first login for consumer apps. The jobs each tool is most often brought in to do.
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Hanko
- Reusable internal infrastructure modulesnot Hanko
- Serverless application stacksnot Hanko
- Testing infrastructure with unit testsnot Hanko
- Standardising environments across accountsnot Hanko
Hanko
- Passkey-first login for consumer appsnot AWS CDK
- Self-hosted auth for privacy-sensitive productsnot AWS CDK
- Replacing a Firebase or Cognito loginnot AWS CDK
- Adding MFA to a web appnot AWS CDK
- EU-hosted authenticationnot AWS CDK
Where do AWS CDK and Hanko fall short?
AWS CDK's most cited limit: targets AWS only, so it does not provision resources on other clouds. Hanko's: organisations, roles and permissions are not yet released. 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
Hanko
- Organisations, roles and permissions are not yet released
- Native iOS, Android and Flutter SDKs are still on the roadmap
- AGPL-3.0 licence may need a commercial licence for some products
- SAML SSO costs $49 a month per connection on top of Pro
How much do AWS CDK and Hanko cost?
AWS CDK is free to use; Hanko has a free plan, with paid plans from $29/mo. Plan by plan below, from each vendor's own pricing page.
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Hanko
Free- StarterFree
- 10,000 monthly active users
- 2 projects
- Passkeys, passwords, MFA, social login
- Pro$29/mo
- $0.01 per monthly active user above 10,000
- 5 projects
- Webhooks and admin API
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 Hanko if
- You need passkeys, passwords and passcodes.
- You want to start without paying.
- You also want social and oauth login.
Questions people ask
- Is AWS CDK or Hanko better?
- It depends on the job. AWS CDK fits defining AWS infrastructure in TypeScript or Python; Hanko fits passkey-first login for consumer apps. AWS CDK starts at Free and Hanko at Free.
- Which is cheaper, AWS CDK or Hanko?
- AWS CDK starts at Free and Hanko at Free.
- Does AWS CDK or Hanko run on more platforms?
- AWS CDK runs on Windows, macOS, Linux. Hanko runs on Web.
- 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 Hanko is typically brought in for.
- What can AWS CDK do that Hanko 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. Hanko covers Passkeys, passwords and passcodes, Social and OAuth login, MFA with TOTP and security keys, SAML enterprise SSO.
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.
SourceHanko: Is Hanko open source?
Yes. Hanko is open-source under the AGPL-3.0 licence and can be self-hosted, or used as the managed Hanko Cloud.
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.
SourceHanko: How much does Hanko Cloud cost?
Starter is free with 10,000 monthly active users. Pro is $29 a month plus $0.01 per user above 10,000.
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.
SourceHanko: Does Hanko support SAML SSO?
Yes. SAML SSO is available on Pro at $49 a month per connection.
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.
SourceHanko: What counts as a monthly active user?
A user who is issued a session token at least once in a month, or whose session token is validated through Hanko, counts once for that month.
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 Zitadel
- AWS CDK vs SuperTokens
- AWS CDK vs Amazon Cognito
- AWS CDK vs Auth0
- AWS CDK vs authentik
- AWS CDK vs Authelia
- AWS CDK vs FusionAuth
- AWS CDK vs IBM Verify
- AWS CDK vs Kinde
- AWS CDK vs BeyondTrust
- AWS CDK vs SailPoint
- AWS CDK vs Beyond Identity
- AWS CDK vs Authy
- AWS CDK vs OneLogin
- AWS CDK vs Google Cloud Identity
- AWS CDK vs ManageEngine AD360
- AWS CDK vs AWS IAM Identity Center
- AWS CDK vs SailPoint IdentityIQ
- Hanko vs Terraform
- Hanko vs HCP Terraform
- Hanko vs Atlantis
- Hanko vs Pants Build
- Hanko vs Frappe
- Hanko vs Eclipse
- Hanko vs Spacelift
- Hanko vs Python
- Hanko vs Backstage
- Hanko vs Jitsu
- Hanko vs Notepad++
- Hanko vs Steampipe
- Hanko vs iTerm2
- Hanko vs JFrog Artifactory
- Hanko vs Leafmap
- Hanko vs LocalStack
- Hanko vs OrbStack
- Hanko vs PhpStorm
- Hanko vs Zitadel
- Hanko vs SuperTokens
- Hanko vs Amazon Cognito
- Hanko vs Auth0
- Hanko vs authentik
- Hanko vs Authelia
- Hanko vs FusionAuth
- Hanko vs IBM Verify
- Hanko vs Kinde
- Hanko vs BeyondTrust
- Hanko vs SailPoint
- Hanko vs Beyond Identity
- Hanko vs Authy
- Hanko vs OneLogin
- Hanko vs Google Cloud Identity
- Hanko vs ManageEngine AD360
- Hanko vs AWS IAM Identity Center
- Hanko vs SailPoint IdentityIQ
