Keycloak vs Amazon Cognito
Amazon Cognito is AWS’s identity service: user pools that sign users in, inside the AWS Region you pick. Keycloak is open-source identity software, and RealmDeploy runs it for you on Azure or AWS. Here is how they compare.
Checked on · Sources
Choose Cognito if your app lives on AWS, you want a free tier up to 10,000 monthly active users, Lambda code at sign-in, or a 99.99% SLA on the Plus tier. Choose Keycloak on RealmDeploy if you need SAML as an identity provider for your apps, LDAP federation, realms you can export with password hashes, and a fixed price per plan.
Keycloak on RealmDeploy and Cognito
Every fact on the right comes from Cognito’s own public pages; the number after it opens the source.
Their facts as published on 25 November 2026; a row is left out where we could not find a fact on their pages. Ours are on the pricing page.
The three differences that matter most
Protocols your apps can use
Cognito issues OpenID Connect and OAuth 2.0 tokens and accepts SAML from outside providers. Keycloak does that and also acts as a SAML identity provider for apps that only speak SAML, and federates LDAP or Active Directory directly.
Price at scale
Cognito is free up to 10,000 monthly active users, then charges per user: $0.015 on Essentials, $0.020 on Plus. At 100,000 active users on Essentials that is about $1,350 a month before add-ons, by its own rates. Our Premium is $999 a month, or $799 billed yearly, sized for about 100K.
Passwords stay behind
AWS’s own guide says existing passwords cannot be retrieved from a user pool. Leaving Cognito means users set a new password. Keycloak realms export with their hashes, so a later move keeps them.
Where each one fits better
If the second list describes you better, Cognito is the better choice.
- Your apps need SAML from their identity provider, not only OpenID Connect.
- You want LDAP or Active Directory federation without AD FS in between.
- You want a price per plan that does not grow with each active user.
- You want an export that includes password hashes, so you can move again later.
- You want Azure West Europe, or the same identity server on more than one cloud.
- Your app runs on AWS and you want identity billed on the same account, with Lambda at sign-in.
- You want to start free: up to 10,000 monthly active users on Lite or Essentials. We have no free plan.
- You need a 99.99% SLA: Cognito Plus has one. Our highest is 99.95%.
- You need a Region other than ours: Cognito runs in many AWS Regions.
Moving from Cognito
We migrate from Amazon Cognito. Premium and Enterprise include 10 service hours a month, which we spend on the move with you. On Starter you run it yourself with our free migration tools. Cognito does not let anyone retrieve existing passwords from a user pool, so users set a new password by email link the first time they sign in to Keycloak.
Moving from CognitoAbout Keycloak and Cognito
Is Keycloak better than Cognito?
It depends on what you need. Cognito is cheaper for a small app on AWS and has a 99.99% SLA on Plus. Keycloak covers more protocols, including SAML as an identity provider and LDAP federation, and its realms are portable.
How do the prices compare at 100,000 active users?
By Cognito’s published rates, 100,000 monthly active users on Essentials is 90,000 billable users at $0.015, about $1,350 a month before add-ons. RealmDeploy Premium is $999 a month, or $799 billed yearly, sized for about 100K active users.
Can I move users out of Cognito with their passwords?
No. AWS’s developer guide says existing passwords cannot be retrieved from a user pool. Users set a new password by email link on their first sign-in to Keycloak.
Can RealmDeploy run in AWS?
Yes. Your cluster can run in AWS Frankfurt (eu-central-1) or AWS N. Virginia (us-east-1), or in Azure West Europe.
Does Keycloak have Lambda triggers?
Keycloak does not run Lambda. It has authentication flows, required actions, protocol mappers and event listeners built in. Custom Java providers are not supported in our tenant images yet.
Which one has the higher SLA?
Cognito Plus: 99.99% per Region, and 99.9% on Essentials and Lite. RealmDeploy has 99.9% on Premium and 99.95% on Enterprise; Starter has none.
Where the Cognito facts come from
Checked on 25 November 2026. Prices and plans change: if one of these has, tell us through the contact form and we will correct this page.
- docs.aws.amazon.com/cognito/latest/developerguide/security-cognito-regional-data-considerations.html
- docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html
- docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-saml-idp.html
- docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html
- docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-using-import-tool.html
- docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-working-with-lambda-triggers.html
- aws.amazon.com/cognito/pricing
- docs.aws.amazon.com/cognito/latest/developerguide/managing-users-passwords.html
- aws.amazon.com/cognito/sla
- aws.amazon.com/premiumsupport/pricing
Other identity platforms
Keycloak vs Auth0
Okta’s hosted identity service, priced by monthly active users, with Node.js Actions and a free tier.
Compare Hosted identity serviceKeycloak vs Okta
Workforce Identity per user per month, and Okta Customer Identity from $3,000 a month, both run by Okta.
Compare Hosted identity serviceKeycloak vs Microsoft Entra External ID and Azure AD B2C
Microsoft’s customer identity: Azure AD B2C is closed to new customers, and External ID is where new features go.
Compare Hosted identity serviceKeycloak vs Firebase Authentication
Google’s sign-in for apps, free to 50,000 monthly active users, with SAML, OIDC and an SLA after the Identity Platform upgrade.
Compare Hosted identity serviceKeycloak vs Clerk
Sign-in components for web apps, free to 50,000 monthly retained users per app, hosted in the US only.
Compare Hosted identity serviceKeycloak vs WorkOS
Enterprise SSO and directory sync priced per connection, with AuthKit free up to 1 million users.
CompareWant a cluster of your own?
Order a realm in the dashboard, or write to us first about what you run today.