Umami: What I Learned While Eating a Big Serving of Humble Pie.
Lessons learned exploring how cheaply I could self-host the open-source Umami analytics suite on AWS with Aurora DSQL and Amplify.
Umami is a modern, privacy-focused analytics platform. An open-source alternative to Google Analytics, Mixpanel and Amplitude.
Umami Analytics is primarily built with JavaScript and TypeScript, using the React based Next.js framework. While the core application runs on these web technologies, it relies on a database for storing analytics data, with PostgreSQL being the recommended and officially supported option.
There are plenty of guides showing how to deploy Umami on Vercel and Supabase as a privacy friendly and inexpensive alternative to Google Analytics. But I had a different idea in mind and, admittedly, got a bit stubborn about it: I wanted to run Umami on AWSAWSAmazon Web ServicesCloudAmazon global cloud computing platform offering on-demand compute, object storage, content delivery, and managed infrastructure services across dozens of geographic regions. and given how little traffic my site gets, I wanted to pay as close to $0.00 for it as possible.
Naturally, the plan was to contribute this fresh, undocumented implementation back to the community. But if you’re still reading, it’s worth clarifying: this isn’t a tutorial or a step by step guide. It’s more of a cobbled together concept. Something that might one day be revisited and developed into a proper solution, if it ever sees the light of day.
Stacks I Considered:
First idea: run Umami’s Docker containers on AWS ECSECSElastic Container ServiceCloudAmazon Web Services fully managed container orchestration service for running, scaling, and managing Docker containers across EC2 instances or AWS Fargate.. There are official Umami containers — great. But how low could I push the price if I deployed ECS on the smallest EC2EC2Elastic Compute CloudCloudAmazon Web Services foundational infrastructure service providing scalable, resizable on-demand virtual compute instances in the cloud. instance available? Answer: not very. Still a few dollars a month. Unacceptable.
Next idea: deploy the analytics front-end on AWS Amplify, a stack I already use and wanted to explore further. Perfect… except Umami needs a Postgres backend, and I wanted to keep everything AWS-native. I considered AWS RDSRDSRelational Database ServiceCloudAmazon Web Services managed relational database service automating provisioning, storage scaling, automated backups, and patching for engines like PostgreSQL., but that was an order of magnitude more expensive than I was willing to pay. What I really needed was something like a serverless relational database. Basically DynamoDB but SQL-flavored.
Enter AWS DSQLDSQLAmazon Aurora DSQLCloudA serverless, distributed SQL database from AWS offering active-active multi-Region availability, PostgreSQL compatibility, and zero idle compute costs.. A relatively new service, Generally Available in multiple regions, and billed via Distributed Processing Units — which means no activity, no cost. Fantastic. I could host the frontend on Amplify and let DSQL handle the storage.
But then reality hit: DSQL doesn’t support simple user:password authentication. It relies on ephemeral tokens and IAMIAMIdentity & Access ManagementSecurityA security framework of role-based and attribute-based policies controlling which identities (users, services, or roles) can perform actions on cloud resources. roles. That meant Amplify would need an Umami adapter, and Umami would somehow need to generate DSQL auth tokens at connection time.
And that’s where everything fell apart. Too many new concepts at once. Documentation was thin. I couldn’t find any real-world examples showing how to make this work. I did find a short presentation explaining how to generate DSQL tokens in an Amplify app, but the GitHub source for the demo was nowhere to be found.
In Closing:
I shelved the idea and let it sit for a while—until the puzzle finally clicked a year later with a simpler Lambda, S3, and Proxmox analytics pipeline. So much ado for nothing back then; I’m already chuckling at my own foolhardiness.
Back to more accessible things — like expanding the features on this site that are still missing.
Related Reading
Tin Cans, Power Tools, Piano Keys, and Slide Decks: Giving a Preteen Real Tools
From drilling a tin-can telephone in proper workshop PPE to watching piano dexterity fuel touch-typing and an independent PowerPoint deck on Minecraft mechanics—why real tools beat sealed glass slabs.
Getting Lost in the Intel Manual: What a Second-Socket UMCE Taught Me About Knowing What You Don't Know
When a series of Uncorrectable Machine Check Exceptions kept hitting the same customer site, I tried decoding the raw hex registers in the Intel manuals and got completely lost. Thankfully, spotting the pattern was enough.
Why Micro Four Thirds Refuses to Die in My Bag
Camera YouTube has written Micro Four Thirds' obituary every autumn for a decade. Meanwhile, I still shoot exclusively on M4/3—because the sharpest full-frame brick on earth takes zero photos from inside a closet.

About the author
Ed Stuurman
Senior infrastructure and reliability engineer based in Kanagawa, Japan. Focused on resilient cloud architecture with AWS and Terraform, enterprise mail migrations, Linux systems, and homelab engineering.
Contact
Thoughts or questions on this article?
Found a bug, tested a similar setup, or want to discuss the details? Drop a message below.