Keycloak on AWS
An AMI on AWS Marketplace, launched into your own AWS account with CloudFormation or from EC2.
- Deploys with
- CloudFormation or EC2
- Recommended size
- t3a.medium
- Ready in
- 5-10 minutes
Add single sign-on, social login and user federation to your applications with Keycloak, running from a pre-configured AMI in your own AWS account. User data stays on your infrastructure, with no per-user pricing.
Keycloak is an Apache 2.0 identity and access management server. It provides single sign-on, social login, identity brokering and LDAP or Active Directory federation for your applications, with every feature available in the open-source project.
One login across your apps with OIDC, SAML and OAuth2.
Multi-factor authentication without a paid tier.
Let users sign in with external identity providers.
Connect existing LDAP or Active Directory users.
Separate users and apps into isolated realms.
Roles, groups and policies for access control.
The AMI ships Keycloak with an admin account and SSL handled at launch.
Subscribe on AWS Marketplace and launch the CloudFormation stack with your domain, admin email and admin password.
After 5-10 minutes, create a DNS record with the PublicIp from the stack outputs.
Open the DashboardUrl and sign in as admin with the password you set.
Add a realm for your users and a client for each application that should use SSO.
An AMI on AWS Marketplace, launched into your own AWS account with CloudFormation or from EC2.
The vendor-recommended security group opens these ports.
| Service | Ports | Protocol |
|---|---|---|
| HTTP and HTTPS | 80, 443 | TCP |
| SSH (administration) | 22 | TCP |
| Keycloak | Auth0 | |
|---|---|---|
| Licence | Apache 2.0, self-hosted | Proprietary SaaS |
| Pricing | Free, pay only for your server | Free to 25,000 MAU, then paid plans |
| MFA | Built in, free | Gated behind paid tiers |
| Data location | Your infrastructure | Okta's infrastructure |
| Maintenance | Yours | None, fully managed |
Weighing Authentik as well? Read Authentik vs Keycloak →
An open-source identity and access management server offering SSO, social login, identity brokering, LDAP and Active Directory integration, and user federation.
Yes. It is Apache 2.0 licensed with every feature in the open-source project. On AWS you pay for the instance and any Meetrix software fee shown on the listing.
Open the DashboardUrl from the stack outputs and sign in with the username admin and the AdminPassword you set.
It is the most established self-hosted one: standards-based, with MFA and SSO included. You run the server yourself instead of paying per monthly active user.
Yes, through an OIDC adapter that turns a Keycloak login into the JWT Jitsi expects. Our Jitsi Keycloak SSO guide covers the setup.
t3a.medium is the recommended starting point.
Automatically when your domain is hosted on Route 53. Otherwise SSH in and run sudo /root/certificate_generate_standalone.sh.
Back up your realm data and configuration, remove the old stack and launch the updated AMI from AWS Marketplace.
Pricing, features and data control, compared.
Features, protocols and licensing for self-hosted IdPs.
Bridge Keycloak login to the JWT Prosody expects.
We build and run self-hosted identity infrastructure every day, from SSO integrations to user federation. Tell us what you need.
Contact us