Skip to content
Compare

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

The short answer

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.

Side by side

Keycloak on RealmDeploy and Cognito

Every fact on the right comes from Cognito’s own public pages; the number after it opens the source.

TopicKeycloak on RealmDeployAmazon Cognito
Hosting modelManaged Keycloak: a dedicated cluster for each customer, set up and run by our team on Azure or AWSAn AWS service; each user pool lives in one AWS Region1
OIDC, SAML and LDAPOpenID Connect, OAuth 2.0 and SAML 2.0, as identity provider and as a broker to outside providers. LDAP and Active Directory user federation.OpenID Connect and OAuth 2.0 as identity provider. SAML 2.0 as service provider to outside SAML providers. Active Directory through AD FS over SAML.23
User federation and migrationKeycloak’s own LDAP and Active Directory federation. We open the outgoing connection from your cluster to your directory.A migrate-user Lambda trigger moves users at sign-in or forgot-password. CSV import, with password hashes in bcrypt, scrypt, Argon2id or PBKDF2-SHA256.45
Custom code and extensionsNot yet: tenant images run stock Keycloak, so custom providers, extensions and themes cannot be installed. Built-in flows, mappers and required actions are set in the admin console.Lambda triggers before and after sign-up and sign-in, for custom challenges, tokens and messages6
Pricing model and published pricesA price per plan, not per user, sized for about 5K, 100K or 500K active users. Starter $199/mo, billed monthly only. Premium $999/mo, or $799/mo billed yearly. Enterprise $2,499/mo, or $1,999/mo billed yearly. Custom through the contact form.Per monthly active user. Lite and Essentials free up to 10,000 per account; Essentials then $0.015 per MAU. Plus $0.020 per MAU, with no free tier.7
Data residency and regionsAzure West Europe, AWS Frankfurt (eu-central-1) or AWS N. Virginia (us-east-1)The AWS Region you pick; user profile data stays in that Region1
Export and lock-inStandard Keycloak realms. Any Keycloak can import their export, users and password hashes included.Existing passwords cannot be retrieved from a user pool8
Uptime SLAStarter: best effort, no SLA. Premium: 99.9%. Enterprise: 99.95%.99.99% per Region on Plus; 99.9% on Essentials and Lite9
SupportWritten only. Starter: next business day. Premium: first response within 4 hours on weekdays. Enterprise: 24×7 for urgent issues.Basic support for every AWS customer; paid AWS Support plans from $29/mo per account10

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.

What differs

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.

Which fits

Where each one fits better

If the second list describes you better, Cognito is the better choice.

Choose Keycloak on RealmDeploy if
  • 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.
Choose Cognito if
  • 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.
Migration

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 Cognito
Questions

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

Want a cluster of your own?

Order a realm in the dashboard, or write to us first about what you run today.