Is Amazon Cognito a good choice long term? Alternatives?

Building an MVP right now and keep seeing mixed opinions on Amazon Cognito. Some people say it’s great because you don’t have to manage auth yourself. Others say costs + complexity become painful as you scale.

For people who’ve used it: was it worth it? did you eventually migrate away? any better alternatives for startups/simple SaaS apps?

Trying to avoid rebuilding auth later :sob:


Related discussions:

Does a Cognito JWT update if attributes are changed?
How do I use google as an identity provider with cognito using react?
Is it possible to send the MFA to two devices in Amazon Cognito?
AWS Cognito <> EC2 Postgres Synchronize?
Do access keys have the same permissions as the account holder?
Amazon Cognito now supports Sign in with Apple
Cognito: Is there a way to verify JWT tokens at front-end using aws-sdk?
Confused about Cognito app clients and custom scopes
AWS Cognito SignInWithApple throws apple_sub Attribute does not exist in the schema error
Sessions, tokens, cognito and jam stacks!
Serverless UI - What's the best approach?
How to perform passwordless user/admin authentication using both email and sms in aws cognito?
How to implement Cognito with/without Amplify on pure HTML & JS?
auth flow considerations for cognito
Does using Amplify confuse some people more than it helps?
Cognito Custom Domains Limit
HTTPS Security Question
Authentication with the AWS Cognito UI vs. the AWS Cognito NPM package - Is what I'm doing incorrect?
TOTP support for cognito
Use JWT Authorizer with Cognito
Where are application user roles and permissions stored when using Cognito?
i'm building a full stack webapp. what are some core services I may have missed?
Question about Cognito
Connect multiple user pools
Possible to Rate Limit API Gateway Per Cognito User?
Creating Cognito User Pool: benefits/risks of social sign in?
Cognito Managed Login
iOS app with Cognito/Lambda/DynamoDB - Developer Authenticated Identities
Cognito adds multi-region replication
Amazon Cognito with Vue.js.
Strange error with AWS Cognito in swift
How do I only allow a couple users to call my API? With google login/cognito.
Using WeChat as an Authentication provider?

No, Auth0, Okta, KeyCloak, and so many more out there are far superior.

used it for couple small projects and migration pain is real when you outgrow it - the vendor lock-in gets pretty heavy once you have users in system

I know that Flickr used to use it, but I haven’t seen many full blown production apps use it past a certain point

For an MVP it’s okay. Later when you want customisation etc you’ll use other tools

Take this with a pinch of salt, but in the recent 10 years, I have constantly heard from DevOps the same thing:

1.) “All AWS services are great for building an MVP, or very small and simple stuff. But when you can have a complex real product, it is better to have full control over everything.”

2.) “I spend most of my time debugging ARN/IAM/Permissions/VPC .”

3.) “When XYZ company moved out from AWS’s close grip to self-manage/k8s/etc, since then, they have no complaints, and I have to spend only 1-2 hours there per month.”

.

> …any better alternatives for startups/simple SaaS apps?..

Depend on your comfort level and knowledge (or budget/having dedicated DevOps time). A simple, small VPS like Hetzner or other cloud providers (Digital Ocean, Linode, etc) might be way cheaper, with less complexity.

Nowadays, we can’t say that AWS’s startup time/learning curve/infra build time are low. It quickly became extremely complex and no safer or more reliable than anything else on the market, but 5-50x pricier.

I’d opt for an alternative.. Cognito wound up being a yoke around our necks: Some customisation options but not enough. Awkward troubleshooting. Not enough options for users’ information its user pools (wound up creating workarounds via scripts to update users). I’d say it’s worth sinking some time into the other options. Can’t exactly give you a recommendation unfortunately: we wound up integrating a system we’d rolled ourselves for another project

Cognito was not designed as a service to make money itself but to bring you into the AWS ecosystem and get you using other profit-making services. This had an impact on its design and capabilities that are not always in the best interest of users. It also struggled for feature development because it chose to build on a bad database layer.

Auth0 so expensive though

Have used Cognito in production for a small app for the past 5 years or so. Its perfectly usable and the price is right if you dont need to scale, but since you specifically mentioned scaling I think I have to agree with other replies in the thread , especially because with auth in general migrating it away in the future is quite hard without forcing users to reinit their passwords

ALB supports external OIDC rules so you can defer all auth management to an external idp. There are external idps with much richer featureset than cognito.

What did you outgrow? Ability to customize UI/UX?

Host your own. AuthN. The limitations, cost and lock-in with an cloud vendor Auth offering is not worth it. Learned the hard the way.

Cognito is OK. But our application does not rely on the user ID from the Cognito User Pool. For every new user, we generate our own unique internal ID. Then, when we receive an authenticated Cognito request with an unknown Cognito ID, we make an API call to Cognito to retrieve the user’s email. Using that email, we find the corresponding internal ID and create a mapping between the internal ID and the Cognito ID.

Cognito is great when you don’t have a large user base. It’s excellent for internal applications with limited use and a small number of users. Now, when you’re working with a system with a considerable number of users, or you don’t have control over that number (it can jump from 200 users to 2,000 from one month to the next), Cognito is terrible. It lacks the necessary features for a robust system: native backup, multi-region support…

I personally use Authentik as alternative.

Depends on your user base and application, for us Auth0 is pathetically cheap. For a development perspective it is basically the gold standard for resources and documentation. If you want to learn anything about auth, go through their docs and a lot of it is applicable to any other vendor you might use.

We’re looking at around $0.25 per active user per month. Our cloud product is priced at an order of magnitude larger than that per user per month. (do note the difference between the two), and we have around 5% of users actually being active in a month.

Cognito is okay, I was using it for a MVP and encountered bugs along the way but got it fixed swiftly by optioning a case (upgrading to business+ plan). It’s used by amazon internally so you’ll see improvements (though very slow), bug fixes and it wont be sunset.

Price, integrates somewhat well with other AWS services. A very good starting point.

Somehow they got us at like $1.10 per MAU :face_with_head_bandage:

Lowest price we got from them was $5/MAU.

I actually moved from Auth0 to Cognito. Auth0 is a good product but I found Cognito would more closely match my requirements in that I can set up multiple apps. My SaaS is building a lot of integrations in to other systems so the OAuth handling in Cognito worked for us