Menu

1 / 4

Where the MAU Bill Hides in a Daily Cognito Audit Job

DEV Community: aws·Rafagross·8 days ago
#4hTyE2Px
#devtoaws#devto#dev#user#cognito
Reading 0:00
15s threshold

I'm designing a multi-tenant SaaS that keeps every customer in a single Cognito user pool. Self sign-up is off. Accounts are created by an operator path, each customer has around 200 users, and administrators must use TOTP.

One of the jobs in the plan runs once a day and reconciles two things: email addresses that changed outside the expected flow, and administrators who don't have TOTP set up. It's a small security control. It is also, written the obvious way, a line on the bill that grows with every customer you sign, whether their users log in or not.

This post walks through that design: where the cost comes from, what AWS recommends instead, why the recommendation has its own costs, and the event-driven version I'm moving toward. The system isn't in production yet, so nothing here is a production war story. Every claim is marked as either documented by AWS, reported by someone else, or not verified.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.