Technology

    AWS Amplify Gen 3 Rollbacks Leave Database Changes in Place

    J
    James
    December 1, 2026•5 min read
    Share:
    AWS Amplify Gen 3 Rollbacks Leave Database Changes in Place
    Advertisement

    TL;DR

    AWS Amplify Gen 3 puts web hosting, managed PostgreSQL and sign-in under one service. It can switch a live URL back to an earlier app build in seconds. That build still uses the database schema from the latest successful migrations. 1 5

    Read time: 4 min

    AWS Amplify Gen 3 bundles hosting and PostgreSQL

    Amazon announced AWS Amplify Gen 3 at its November 30 re:Invent developer keynote in Las Vegas. The new release detects frameworks such as Next.js, Nuxt and Astro and configures the build. Teams that add the managed backend get PostgreSQL 17, Better Auth for user sign-in and a PostgREST-compatible API for reading and writing data. 1 2 3 7

    Amplify starts each app with preview and production environments. Their backend branches have their own database and sign-in users. Deployments apply the schema to the target branch without copying rows or accounts between branches, so a preview can test sign-in and data changes using its own fixtures. 3

    In practice, this makes a preview more useful than a screenshot of a new feature. A team can seed a test account, walk through a feature that writes to the database and check which rows that account can see. Amplify uses PostgreSQL row-level security for these data API requests. The access policies still belong in the team’s migration files, where they can be reviewed with the feature. 3 8

    Advertisement

    App rollback and database recovery are two operations

    For a web app with a backend, AWS Amplify Gen 3 applies pending SQL migrations before it builds and deploys the site. Each migration file runs in its own transaction. If a later file fails, the previous deployment keeps serving the site, and the schema changes from earlier successful files stay applied. Those changes also survive a failure in the build step. 4

    The tricky part is what the old code sees when traffic returns to it. Suppose a release renames a column that the live app still reads. The current build can start throwing errors as soon as the migration commits. Switching the URL back to that build leaves it querying the name that just disappeared. A safer sequence is to add the new column, ship code that works during the transition, and remove the old column after the builds that depend on it are out of the rollback window. 4 5 8

    AWS says Amplify keeps 50 successful deployments per environment for rollback. Switching the URL to a previous build takes about five to ten seconds to reach all viewers, according to its docs. Both builds can serve requests during that interval, another reason to keep the schema compatible with each. 5

    Why This Matters

    A small product team can use one deployment workflow for hosting, sign-in and data, with less setup across services. A SQL change still needs the same review as a production code change. The preview is where I’d test both versions of the app against the migrated schema. Passing that test gives the team a reason to trust the rollback button. 1 3 5

    Recovery also depends on what broke. For a code regression, switching to a prior build can restore service quickly if it still works with the current schema. A schema reversal takes a new migration. A bad data write can require restoring a database backup into another branch, then copying the rows back. AWS says its free plan lacks point-in-time restore. 5 6 8

    • Release order: Review SQL separately because migrations run before the website build. 4
    • Rollback depth: Amplify retains the last 50 successful deployments per environment. Check which of those builds still work with production’s schema. 5
    • Recovery time: Drill the time to restore rows separately from the time to switch app builds. Amplify’s backup restore creates a separate branch. 5 6
    Advertisement

    Key Takeaways

    • Use AWS Amplify Gen 3 preview environments to test the migration against both the current build and the incoming one. 3 5
    • Keep schema changes compatible with live app versions across the rollout. Schedule destructive changes after you can retire the older version. 5 8
    • Put app rollback and data recovery in separate steps in the incident runbook. Check your plan’s restore window before relying on it. 5 6

    For more re:Invent and AWS data tooling coverage, see last year’s developer tools and how Glue traces writes to a data column.

    FAQ

    What does AWS Amplify Gen 3 include?

    AWS Amplify Gen 3 builds and hosts web apps. Add its managed backend and you get a PostgreSQL database, sign-in powered by Better Auth, and a PostgREST-compatible API. Preview and production use separate backend branches, with their own databases and sign-in users. 3

    What happens to PostgreSQL during an Amplify rollback?

    AWS Amplify switches the environment URL to an earlier app deployment. The older code runs against the current PostgreSQL schema, including any migrations that already succeeded. To reverse a schema change, write and apply a new migration that undoes it. 5 8

    Advertisement

    Sources

    1. 1. Amazon's AWS Amplify launch announcement
    2. 2. AWS re:Invent developer keynote schedule
    3. 3. AWS Amplify Gen 3 backend architecture
    4. 4. AWS Amplify deployment and migration sequence
    5. 5. AWS Amplify promotion and rollback documentation
    6. 6. AWS Amplify database backups and restore documentation
    7. 7. Amazon’s day-one re:Invent launch briefing
    8. 8. AWS Amplify guidance on writing and reversing migrations

    Found an error or inaccuracy? Report it here and we'll review it promptly.

    J

    James

    Technology infrastructure and software engineering writer.