← All coursesCourse · 5 lessons · 30 min read
Build a multi-tenant SaaS on AWS
Workspaces, billing, events and an AI agent on serverless AWS, from git clone to your own module.

Before a SaaS product can do anything useful, it needs workspaces, roles, invitations, billing and a way to delete a customer's data. None of that is your product, but all of it has to work.
This course uses saas-backend-v2, an open template where those parts already exist, on AWS, with no servers to run. You deploy it, learn how it keeps customers apart, build your own module and add your own AI agent.
Lessons
- 1A Multi-Tenant SaaS Starter on AWS: What's in It and Who It's ForWhat a multi-tenant SaaS starter on AWS includes, how it fits together, who it's for and what it can't claim yet.6 min read
- 2From Clone to a Running Stack: Deploying the SaaS Template on AWSDeploying a fresh copy of the template to an empty AWS account: the exact steps, what broke, and what the test didn't cover.6 min read
- 3How Multi-Tenancy Works in a Serverless SaaS on AWSHow the template keeps customers apart in shared tables: choosing a model, the login token and tenant keys.6 min read
- 4Build Your First Module: Copy, Change and Connect with EventsCopying the orders sample into a new module, adding a feature, and connecting modules with events.6 min read
- 5Add Your Own AI Agent to a Multi-Tenant SaaSAdding an agent as a Markdown file, giving it a tool, and keeping it safe.6 min read