Softwr

Developer Tools · head to head

AWS CDK vs Hanko

AWS CDK logo

AWS CDK

Developer Tools

Open source framework for defining AWS infrastructure in programming languages

From
Free
Free plan
Yes
Hanko logo

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.

Attributes where AWS CDK and Hanko differ
AttributeAWS CDKHanko
PlatformsWindows, macOS, LinuxWeb

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

Free

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

Source
Hanko: 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.

Source
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
Hanko: 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.

Source
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
Hanko: Does Hanko support SAML SSO?

Yes. SAML SSO is available on Pro at $49 a month per connection.

Source
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
Hanko: 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.

Source
Share

Related pages

Other head to heads