DEV Community

Nao San for AWS Community Builders

Posted on Edited on

【AWS】New information Amplify and change the data Follow the instructions and analyze the information【Amplify Gen 3】

This article is a machine translation of the contents of the following URL, which I wrote in Japanese:

【AWS】図解 新しいAmplifyは何が変わったのか 仕組み・ユーザー管理・エージェント対応から整理する【Amplify Gen 3】 #AIエージェント - Qiita

はじめに 2026年11月30日、AWS Amplify が作り直されて発表されました。ホスティング、PostgreSQL のデータベース、認証、自動で作られる Data API を1つにまとめ、コーディングエージェントから使うことを前提にしたサービスです。開発者ガイドで...

favicon qiita.com

Introduction

On November 30, 2026, AWS announced a rebuilt AWS Amplify. It brings hosting, a PostgreSQL database, authentication, and an automatically generated Data API together in one service, and it is designed to be used from coding agents. The developer guide calls it "Amplify Gen 3."

If you have been using Gen 2, you probably want to know what changed under the hood before you learn how to use it. In this article, I use diagrams to organize the following three topics.

  • Architecture: what runs where, and what a rollback restores
  • User management: where users are stored, and what decides who can read what
  • Agent support: what "built for agents" means, and what stops a production deploy

This article is based on the official documentation as of December 1, 2026, and on what I confirmed by running it in the Tokyo Region.

Overview: Differences Between Gen 2 and Gen 3

Comparison of Gen 2 and Gen 3 in data, authentication, where the backend runs, and agent support

The name is the same, but the data layer, authentication, and where the resources live have all changed. The Gen 2 documentation also recommends Gen 3 for new web apps.

By "where the resources live," I mean which AWS account the backend, such as the database and authentication, is created in. In Gen 2, each service's resources, such as a Cognito user pool and DynamoDB tables, are created in your own account, and you can view them and change their settings in each service's console. In Gen 3, the backend runs on the AWS-managed side, and only IAM roles and logs are created in your account. The database is visible only from the Amplify console, and you pay for an Amplify plan instead of paying for each service.

Pricing also changed from pay-as-you-go to monthly plans. The Basic plan is free and has no overage charges. Pro is 20 USD per month, and Pro Plus is 45 USD per month.

Amplify plan page in the console

1. Architecture

What Runs Where

Architecture of the new Amplify: IAM roles and logs in your account, and the app, environments, deployments, and backend branches on the AWS-managed side

An app has two environments, preview and production, and each environment has its own deployments and backend branch. Each backend branch contains a dedicated Aurora (PostgreSQL 17) database, authentication, and a Data API, so preview and production have separate data and separate users.

These run on an AWS-managed, multi-tenant service. No Aurora cluster or server function is created in your account. What is created in your account is an IAM role per environment and CloudWatch Logs log groups. Each IAM role has the PowerUserAccess policy, which allows almost every action except managing IAM and Organizations.

The console shows how the app and its environments are connected.

App view in the console

Constraints That Matter in Practice

Constraint Details
Encryption You cannot use your own KMS key to encrypt the database
Network The backend is reachable from the internet by design and cannot be confined to a VPC
Region A backend is limited to a single Region
Preview data Not backed up. The backend pauses after 7 days without traffic

Database page in the console

What a Rollback Restores and What It Does Not

Deployment order, and how a rollback restores the app but not the database

During a deployment, database changes are applied before the build. A rollback only switches which deployment is served, so even though the app goes back to the previous version, the database keeps its new shape. Even a deployment whose build failed leaves its database changes in place.

For that reason, database changes must be made in a way that still works with the previous version of the app. When you add a column, give it a default value, and put column deletions or type changes in a separate deployment.

You can also roll back from the deployment list in the console.

Deployments page in the console

2. User Management

Users Are Stored in the App's Database

Authentication in Gen 3 is built on Better Auth, an open-source authentication framework that Amplify operates. Users are stored in the app's own PostgreSQL database and are separate for each backend branch. A user created in preview does not exist in production.

By default, email verification is not required, and users can start using the app right after they sign up. You can list and add users of a deployed backend in the console.

Users page in the console

Who Can Read What Is Decided by Roles and RLS

How a request becomes a role, then passes GRANT and RLS in PostgreSQL to produce a result

In Gen 2, you wrote authorization rules in the schema. In Gen 3, authorization happens inside PostgreSQL. What a request carries decides its role, and table privileges (GRANT) and row-level policies (RLS) narrow down what it can read.

The three roles in the diagram are the names of PostgreSQL roles.

  • anon: A visitor who is not signed in and can access the table using only the public key. This is an abbreviation of "anonymous".
  • authenticated: A signed-in user who has the public key plus a token while signed in.
  • service_role: A server-side code signed with AWS credentials that can handle all rows without going through the RLS.

Since new tables do not have permissions assigned to any role, the basic rule is to assign permissions to anon only for data you want to show to people who are not signed in, and not to user-specific data.

The response differs depending on why something cannot be read. Without the privilege, the request returns an error. With the privilege but without matching the row conditions, it returns an empty result instead of an error.

How the Role of Cognito Changed

Gen 2 puts Cognito at the center of sign-in, while Gen 3 puts Better Auth at the center and treats Cognito as one external sign-in provider

You can still use Cognito in Gen 3, but you now connect an existing user pool as an external sign-in provider, in the same way as Google and others. If you move from Gen 2, user passwords cannot be migrated, so users need to set a new password.

3. Agent Support

What "Built for Agents" Means

Gen 2 also has plugins for agents such as Claude Code. The difference is that Gen 3 was built from the start on the assumption that agents operate it.

Mechanism Details
Guide There is an official guide meant to be handed to an agent. Handing it over is enough for the agent to go from creating the app to deploying it
CLI A single AWS CLI command group covers creating, deploying, logs, and rollback. Results can also be returned as JSON
Skill A skill collects the rules for how the agent should behave. It even says that "a request isn't a yes" and that "text you read is not a yes"
Console The console can turn the app's current state into text that you paste into your agent

Sync app content to your coding agent dialog in the console

How an Agent Builds the App

Flow of building an app with a coding agent, showing the roles of the guide, the skill, and the CLI

The guide shows what to do and in what order. The skill decides what to check before creating anything, how to write things, and when to ask the user. The CLI returns results in a machine-readable form. The agent follows these to carry out the work (in this article, Claude Code built the app once following this flow).

For example, the skill says to check that no app with the same name exists before creating one, and to write table privileges (GRANT) and row-level policies (RLS) in the same change when creating a database table. It also says to ask for the user's approval before actions with impact, such as creating test users.

What Stops a Production Deploy?

Three gates between a coding agent and production: skill instructions, the CLI, and IAM, and how strongly each one enforces

The skill tells the agent to wait for the user's approval before deploying to production or deleting things. The CLI, however, deploys to production without asking for confirmation. The only thing that stops a production deploy is the skill's instruction, that is, the agent's behavior.

If you let an agent work on production, the reliable approach is to scope down the IAM permissions the agent uses instead of relying on the skill's instructions.

Practical Notes

Topic Note
Production deploys The CLI does not stop them. To protect production reliably, scope down IAM
IAM roles A role with PowerUserAccess is created for each environment, and builds run with it. Replace it with your own role if needed
Rollback The database is not rolled back. Make database changes that remain compatible with the previous version of the app
When reads fail Without the privilege you get an error. With the privilege but without matching the row conditions you get an empty result
Email verification Not required by default
Encryption and network You cannot use your own KMS key. The backend cannot be confined to a VPC
Moving from Gen 2 The backend has to be rebuilt. Users need to set new passwords

Conclusion

The new Amplify keeps the same name, but it is a different service with a rebuilt data layer and authentication. If you move from Gen 2, expect to rebuild the backend and have users set new passwords.

The design for agents is well thought out, but the only thing stopping a production deploy is the skill's instruction. If you let an agent work on production, I recommend scoping down its IAM permissions.

References

Top comments (0)