En
← All articles

AWS Amplify can roll back a site. What about its database?

An old page can be back online before its first correct order. A recovery drill should record both times.

ColumnTechnologyAuthorOpen Market NotesTypeArticle
Hand-drawn web rollback and retained database changes beside a recovery checklist

A coding agent deploys a small merchant’s revised checkout, but customers cannot submit the new form. An operator switches traffic back to the previous build. The page loads again. Can a customer place an order? If the release removed the delivery-note field that the older form writes to, the answer depends on the database. A working page is not proof of a correct order.

AWS announced the new Amplify at its November 30 developer keynote in Las Vegas. The platform puts hosting, data and sign-in in one workflow, offers separate preview and production environments, and can put a previous deployment back on the live URL. That reduces setup for a small team. It also means an agent can change the site and the database in the same release, even though they do not recover together.

A failed build can leave a changed database

Amplify runs pending migrations before building the website. If a migration succeeds and the build then fails, old code may keep serving traffic against a changed schema. A second case is a visible rollback after the new website ships: the earlier deployment returns, but applied migrations remain. An older build also retains the publishable key it shipped with; if that key was revoked, its backend requests can fail even when the schema works. AWS documents these separately. A switch in traffic is a useful signal about the deployment, not about the dependencies it needs.

Take the hypothetical delivery note. If the new release removes the old column, the old form can lose its write path. Adding the old column back may not be enough if notes written by the newer build exist only in the replacement field. A staged change can preserve both interfaces until reads, writes and the existing data have migrated, then retire the old field. This is the parallel change pattern described by Danilo Sato. In preview, have the new build write a synthetic order. Then serve the previous build against that same database, read the order, add a note, and check the stored values and the user’s permissions. An administrator’s superficially successful test may miss what ordinary customers encounter.

Log two recovery times from the same starting point

Our proposed release drill records elapsed time from the decision to roll back to two milestones. First, verify that the environment URL actually serves the previous build. Second, observe a representative business operation succeed and validate its result. For checkout, that means submitting a synthetic order with an ordinary test account and checking the order ID, delivery note and ownership, not just seeing the page. If the second milestone trails the first, use the gap to separate a key or permissions issue from schema incompatibility or data reconciliation. Also rehearse a failed build while the old site is still serving traffic and ask whether the same test transaction completes.

One successful transaction does not prove full recovery. Choose a few flows that matter to the business, such as placing an order, viewing an existing one and updating a note, and log them individually. When reviewing a change an agent prepared, ask it to state which build will serve after rollback, which database changes will persist, and which operation needs verification with ordinary permissions. That gives a reviewer evidence to test, rather than a deployment status to accept.

Finding an old record is not the same as putting it back

On supported plans, point-in-time restore creates a separate production database branch and leaves the live branch alone. That gives operators a copy to inspect. If the release erased some notes but customers placed valid orders afterward, identify the missing records and protect later valid writes when reconciling the two. AWS also documents that a normal database dump does not include user accounts. None of these scenarios is a measured incident. A stateless site may only need a traffic and page check; for a shop accepting orders, a verified write is a better proxy for what customers were waiting for.

Sources

AI Q&A

Does switching to an old build undo migrations?

No. Applied migrations remain, and the old code runs against the current schema.

How can a team verify checkout recovery?

Use an ordinary test account to place a synthetic order and check its record and ownership, not just the page.

Does point-in-time restore replace the live database?

No. Supported production restores create a separate branch. The live branch stays in use.

Information only. No investment, legal, tax, or financial advice.