Identity and Access Management · head to head
Amazon Cognito vs AWS CDK

Amazon Cognito
Identity and Access Management
AWS customer identity service for sign-in, federation and access tokens, priced per active user
- From
- Free
- Free plan
- Yes

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.
- AWS CDK is free; Amazon Cognito starts at $0.015/mo.
- Only Amazon Cognito lists user pools with sign-up and sign-in; only AWS CDK lists construct Library of reusable components.
- Where Amazon Cognito falls short: SMS and email delivery are billed separately through SNS and SES.
- Where AWS CDK falls short: targets AWS only, so it does not provision resources on other clouds.
How do Amazon Cognito and AWS CDK differ?
Amazon Cognito and AWS CDK differ on pricing model (Usage-based against Open-source), platforms and category. Only the attributes on which Amazon Cognito and AWS CDK actually diverge.
| Attribute | Amazon Cognito | AWS CDK |
|---|---|---|
| Pricing model | Usage-based | Open-source |
| Platforms | Web | Windows, macOS, Linux |
| Category | Identity and Access Management | Developer Tools |
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 9 appear only for Amazon Cognito and 8 only for AWS CDK. 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 Amazon Cognito
- User pools with sign-up and sign-in
- Social, SAML and OIDC federation
- Passkeys and one-time passwords
- OAuth 2.0 machine-to-machine tokens
- Managed Login with UI editor
- Adaptive authentication on Plus
- Compromised credential detection
- Multi-Region replication
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
What is each one used for?
Amazon Cognito is most often brought in for customer sign-in for AWS-hosted apps; AWS CDK for defining AWS infrastructure in TypeScript or Python. The jobs each tool is most often brought in to do.
Amazon Cognito
- Customer sign-in for AWS-hosted appsnot AWS CDK
- Federating enterprise SAML and OIDC identity providersnot AWS CDK
- Machine-to-machine tokens for microservicesnot AWS CDK
- Passwordless login with passkeysnot AWS CDK
- Authenticating AI agents on AWSnot AWS CDK
AWS CDK
- Defining AWS infrastructure in TypeScript or Pythonnot Amazon Cognito
- Reusable internal infrastructure modulesnot Amazon Cognito
- Serverless application stacksnot Amazon Cognito
- Testing infrastructure with unit testsnot Amazon Cognito
- Standardising environments across accountsnot Amazon Cognito
Where do Amazon Cognito and AWS CDK fall short?
Amazon Cognito's most cited limit: SMS and email delivery are billed separately through SNS and SES. AWS CDK's: 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.
Amazon Cognito
- SMS and email delivery are billed separately through SNS and SES
- Plus tier has no free tier, and advanced security needs it or an add-on
- Federated SAML and OIDC users have only 50 free MAUs
- Best suited to teams already building on AWS
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
How much do Amazon Cognito and AWS CDK cost?
Amazon Cognito has a free plan, with paid plans from $0.015/mo; AWS CDK is free to use. Plan by plan below, from each vendor's own pricing page.
Amazon Cognito
Free- Essentials$0.015
- Managed Login
- Passwordless sign-in
- 10,000 free MAUs
- Plus$0.02
- Threat protection
- Adaptive authentication
- No free tier
AWS CDK
FreeNo published plan breakdown. See the AWS CDK review.
Which should you pick?
Choose Amazon Cognito if
- You need user pools with sign-up and sign-in.
- You want to start without paying.
- You also want social, saml and oidc federation.
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.
Questions people ask
- Is Amazon Cognito or AWS CDK better?
- It depends on the job. Amazon Cognito fits customer sign-in for AWS-hosted apps; AWS CDK fits defining AWS infrastructure in TypeScript or Python. Amazon Cognito starts at Free and AWS CDK at Free.
- Which is cheaper, Amazon Cognito or AWS CDK?
- Amazon Cognito starts at Free and AWS CDK at Free.
- Does Amazon Cognito or AWS CDK run on more platforms?
- Amazon Cognito runs on Web. AWS CDK runs on Windows, macOS, Linux.
- Can I use Amazon Cognito for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Amazon Cognito best used for?
- Amazon Cognito is most often used for customer sign-in for aws-hosted apps, federating enterprise saml and oidc identity providers, machine-to-machine tokens for microservices, passwordless login with passkeys. Of those, customer sign-in for aws-hosted apps and federating enterprise saml and oidc identity providers are not what AWS CDK is typically brought in for.
- What can Amazon Cognito do that AWS CDK cannot?
- Amazon Cognito covers User pools with sign-up and sign-in, Social, SAML and OIDC federation, Passkeys and one-time passwords, OAuth 2.0 machine-to-machine tokens. 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.
Answered from the vendors’ own pages
Amazon Cognito: How much does Amazon Cognito cost?
Essentials is $0.015 per monthly active user and Plus is $0.020, after the free tier. Lite uses tiered pricing starting around $0.0055.
SourceAWS 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.
SourceAmazon Cognito: Is there a free tier?
Lite and Essentials include 10,000 free MAUs per account or AWS organisation. Plus has no free tier.
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.
SourceAmazon Cognito: What sign-in methods are supported?
Passwords, social login, SAML and OIDC federation, and passwordless sign-in with passkeys or SMS and email one-time passwords.
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.
SourceAmazon Cognito: Are SMS messages included?
No. SMS and email messages for verification and MFA are billed separately through Amazon SNS and Amazon SES.
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
More on Amazon Cognito
Other head to heads
- Amazon Cognito vs Hanko
- Amazon Cognito vs Auth0
- Amazon Cognito vs FusionAuth
- Amazon Cognito vs Silverfort
- Amazon Cognito vs OneLogin
- Amazon Cognito vs Zitadel
- Amazon Cognito vs Kinde
- Amazon Cognito vs ManageEngine AD360
- Amazon Cognito vs BeyondTrust
- Amazon Cognito vs SailPoint
- Amazon Cognito vs authentik
- Amazon Cognito vs Beyond Identity
- Amazon Cognito vs SuperTokens
- Amazon Cognito vs Authelia
- Amazon Cognito vs Authy
- Amazon Cognito vs Google Cloud Identity
- Amazon Cognito vs IBM Verify
- Amazon Cognito vs SailPoint IdentityIQ
- Amazon Cognito vs Terraform
- Amazon Cognito vs HCP Terraform
- Amazon Cognito vs Atlantis
- Amazon Cognito vs Pants Build
- Amazon Cognito vs Frappe
- Amazon Cognito vs Eclipse
- Amazon Cognito vs Spacelift
- Amazon Cognito vs Python
- Amazon Cognito vs Backstage
- Amazon Cognito vs Jitsu
- Amazon Cognito vs Notepad++
- Amazon Cognito vs Steampipe
- Amazon Cognito vs iTerm2
- Amazon Cognito vs JFrog Artifactory
- Amazon Cognito vs Leafmap
- Amazon Cognito vs LocalStack
- Amazon Cognito vs OrbStack
- Amazon Cognito vs PhpStorm
- AWS CDK vs Hanko
- AWS CDK vs Auth0
- AWS CDK vs FusionAuth
- AWS CDK vs Silverfort
- AWS CDK vs OneLogin
- AWS CDK vs Zitadel
- AWS CDK vs Kinde
- AWS CDK vs ManageEngine AD360
- AWS CDK vs BeyondTrust
- AWS CDK vs SailPoint
- AWS CDK vs authentik
- AWS CDK vs Beyond Identity
- AWS CDK vs SuperTokens
- AWS CDK vs Authelia
- AWS CDK vs Authy
- AWS CDK vs Google Cloud Identity
- AWS CDK vs IBM Verify
- AWS CDK vs SailPoint IdentityIQ
- 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
