AWS Cognito adds multi-region replication for user pools
· Do Minh Tuan · Developer Corner 💻
AWS announced multi-region replication for Amazon Cognito. In plain terms, a user pool in one region can now keep a replica in another, with profiles and credentials copied across, so a regional outage does not lock every customer out of your app.
That is the pitch. The part I find interesting is what the feature does and does not do.
If you have not used it, Cognito is AWS's hosted user directory. Sign-up, sign-in, tokens, password resets. The boring layer nobody wants to build and everybody notices when it breaks. Most teams touch it twice: at the start, and during an incident.
Before this, surviving a dead region meant writing your own replication. Pull users from one pool, push them into another, keep credentials consistent, and hope nothing drifts between the two. That job tends to sit in a backlog for a year because nobody wants to own it. Password material does not move between systems as casually as a row in a table, and every sync job is another place for a bug to live.
So a native option is welcome. AWS says you set up a secondary user pool linked to the primary, through the console or CDK, and the profile and credential data is replicated from the primary region.
Here is what I would underline: replication is not failover.
A replica sitting in another region does nothing for you until traffic actually goes there. AWS's guidance points at Route 53 for that: health checks on the primary region's endpoint, an active-passive failover policy, and a single custom domain, something like auth.yourstartup.com, instead of a hardcoded endpoint in your React or Node front end. Put login behind that one name, and when the health check trips, DNS sends people to the replica.
That is a sensible design. It is also four moving parts that can each be wrong: the health check, the DNS record, the TLS certificate on the custom domain, and the front-end config. Most of the failover incidents worth worrying about come from a setup that was configured once and never exercised. A recovery plan you have not triggered is a hypothesis, not a plan.
What I would want to know before betting on it
Replication does not answer every question a login system raises. I would want to know how far behind the replica can fall under load, and what happens to sign-ups and password changes made in the window between the primary dying and DNS catching up. Whether those writes land later or vanish decides whether users see a blip or open a support ticket.
I would also want to know what happens on the way back. Returning to the primary after an outage is usually messier than leaving it. Teams plan the exit and forget the return, then discover that coming home is its own migration.
And I would ask who owns the health check. Route 53 can only fail over to something it can see. If the check points at a shallow endpoint that stays green while auth is actually degraded, you get a replica nobody visits and an outage that looks like a mystery for the first hour.
None of that is a knock on the feature. It is the normal gap between a vendor shipping a capability and a team operating it.
Who this is actually for
If you are running a small product on one region, this probably is not your first problem. Your first problem is that nobody has written down what happens when the database disappears. Replication for auth is a good second step, not a strategy.
Where it earns its keep is the middle. Companies big enough that an hour of login downtime costs real money, but not big enough to have a platform team dedicated to identity. For them, replacing weeks of custom sync work with a linked pool is a good trade, and the cost argument is the honest one.
The uptime argument is weaker. Replication moves one component out of the single-region trap. It does not make your app highly available, and any specific number of nines in a vendor post should be treated as marketing until your own incident history backs it up.
For a founder in Vietnam building for users in the US or Europe, the practical question is simple. Is your login path one region deep? If yes, and login downtime would cost you customers, this is worth a look. If your auth already sits behind a provider that handles this for you, you have bought the problem away and can skip the post.
What I would do
Read the failover documentation before the replication documentation. The replication is the easy half.
Then rehearse it. Break the primary on purpose in a test environment, watch the health check flip, and time how long it takes before a test user can sign in on the other side. That number is the one you quote in a sales call, not the one from the AWS blog post. If the rehearsal takes an afternoon and saves you a 3am discovery, it is the cheapest insurance in the whole stack.
Then write one page describing what your users experience when the primary region is gone: how long until DNS moves, what they see in the meantime, and who gets paged at 3am. If that page is blank, a new AWS toggle will not fill it in for you.
The thing I will be watching is whether teams actually test the failover or just tick the box. My guess is most tick the box, and we will learn the rest from postmortems over the next year.
Written with AI assistance, reviewed and edited by Do Minh Tuan.