Amplify backend
Amplify now puts hosting, a Postgres database, and sign-in in one AWS account. Deploy from your terminal or from Git, check every change in a preview first, and roll back in one step if something breaks.
Looking for Amplify Hosting? See the Amplify Hosting User Guide.
An Amplify backend adds a PostgreSQL database, sign-up and sign-in for your app’s users, and a data API to your web app, and they work together from your first deployment. You describe your tables, access rules, and sign-in settings as files in your repository, and Amplify builds and connects all three each time you deploy. It’s serverless, with no servers for you to size or manage. The Amplify backend provides the following:
-
Serverless – Amplify creates each backend for you. When your app has no traffic for 5 minutes, the backend goes to sleep, and the next request wakes it in seconds. You’re not charged for compute while it’s asleep. On the free plan, Amplify pauses a backend that hasn’t been used for 7 days, and a request doesn’t wake a paused backend: you resume it with
aws amplifygen3 backend resume. For details, see When Amplify pauses a backend. Under load, the database automatically scales up to adapt to your usage spikes. -
Infrastructure from code – You, or your AI coding agent, describe the backend in files in your repository: SQL migrations for your tables and their access rules, which are row-level security (RLS) policies, and your auth settings. Each deployment applies your migrations and configures the backend with your settings.
-
Authentication and authorization connected to your database – Auth signs your users in with email and password, a social provider such as Google or GitHub, or an Amazon Cognito user pool. It runs on managed Better Auth, an open-source authentication framework that Amplify operates and updates for you. Every request from a signed-in user runs in the database as that user, so your RLS policies let each user read and change only the data that you allow.
-
A PostgreSQL database with a generated data API – The database runs PostgreSQL 17, and you connect to it with psql, Drizzle, Prisma, or another PostgreSQL client. Amplify generates a data API from your tables. The data API is PostgREST-compatible, so apps that use PostgREST today keep their query syntax.
-
A client SDK for your app – Your app signs users in and reads and writes rows with the Amplify client SDK,
@aws-amplifygen3/backend-client-js. Each deployment gives your app the backend URL and the publishable key that the SDK connects with. -
One app for your website and backend – The backend is part of the same app as your website. When your app deploys from a Git repository, each push deploys your backend changes and your website together. Each deployment applies your backend changes first, and then builds and deploys your website, so the website that goes live runs against the schema that it was built for.
-
Backend branches for environments and development – Every app starts with two environments, production and preview, and you can add others, such as staging or qa. Each environment runs on its own backend branches, and each backend branch has its own database, auth, and data API. Each Git branch that you push also gets its own backend branch, so you test a feature against its own database. Merging the feature doesn’t delete that branch. To delete it, run
aws amplifygen3 branch delete. A new branch starts with your schema applied, no rows other than the ones your migrations insert, and no users, because deployments never copy data between branches. -
Built for developers and their AI coding agents – You and your agent use the same Amplify CLI. It prints text on a terminal, and JSON with
--output json. Thelocalcommands also print JSON when their output isn’t a terminal. Its errors name what went wrong. Give your agent the CLI and the Amplify agent skill, and it can create tables, test access rules, and deploy. It can also read the backend’s logs and metrics to troubleshoot a failed request or deployment. For more information, see Deploy with AI coding agents. -
Local development – You run a database, auth, and a data API on your computer in Docker or Finch. You change your schema and test your access rules there before you deploy.
Topics
For more information about the Amplify backend, see the following pages:
Amplify backend use cases
You can build the following kinds of apps with an Amplify backend:
-
Prototypes – You build an idea to show to users before you know whether it will last. The backend arrives with the app’s first deployment. The backend goes to sleep when nobody uses the app. On the free plan, a backend that hasn’t been used for 7 days is paused until you resume it.
-
Apps with daily traffic cycles – Your app is busy during the day and quiet at night or on weekends. The database scales up when traffic is high. When traffic stops, the backend goes to sleep, and the next request wakes it in seconds.
-
Apps with user accounts – Your users sign up, sign in, and keep their own records, such as notes, orders, or bookings. Access rules in the database limit each user to their own rows.
-
Team tools – A team shares a tracker, a dashboard, or an admin tool. Auth signs each member in, and access rules give each member the rows that their team or role allows.
-
Multi-tenant apps – Several customer organizations use one app, and their data shares the same tables. Access rules limit each user to their own organization’s rows.
-
Startups and SaaS platforms – Your app grows from its first users to many customers. You raise each environment’s maximum database capacity as traffic grows, and you test changes in staging or qa before they reach production.
-
Apps with an embedded AI agent – Your app includes an AI agent that reads and writes data for the user. The agent calls the data API as the signed-in user, so it reaches only the rows that the user’s access rules allow.
For more information about backend pricing, see Pricing and spend limits.