The new AWS Amplify gives every preview a database. It starts with zero customers
A Git branch gets its own PostgreSQL database and sign-in. That makes it possible to test a booking without touching a real seat, provided someone gives the preview a seat to book.
Open a pull request for a ticket-booking app and the preview might look exactly like the live site. Try signing in with a real customer’s account, though, and the resemblance ends. In the version of AWS Amplify that Amazon introduced at re:Invent on November 30, each Git branch pushed to the service gets its own backend. The new PostgreSQL database starts with the app’s table structure and zero rows. Its user directory starts empty, too.
That separation changes what a reviewer can do with a preview link. A designer can take a booking all the way through checkout with a test account. A developer can cancel it, change a table and try again. Neither action takes a real seat off sale. It also changes what a successful test tells you: an empty theatre is a particularly easy place to find two seats together.
The last seat in the room
Suppose the change under review lets a customer switch seats after paying. A fresh preview can show the new button and open the seat picker. It cannot reveal whether the picker offers a seat another customer has already bought until there is a second booking in its database. The team can use the Amplify command-line tool to load sample data after deployment. Two fictional bookings and two test accounts let the reviewer try the change from both sides of the aisle.
The Amplify database guide describes the boundary precisely. Production and preview each have their own database, sign-in system, publishable key and backend URL. Deploying a branch does not copy records between environments. When the change goes live, Amplify applies database changes before serving the new version of the app. A successful rehearsal with two rows can tell you whether the seat-selection logic works. It tells you little about how long a change to a table of two million bookings will take.
What survives the merge
There is a small operational surprise at the other end of the review. Merging the code in Git leaves the preview backend in place. Its compute goes to sleep when the app has no traffic and wakes in seconds on the next request, according to AWS. Its stored data still counts toward usage. A team that creates a preview for every change has a reason to decide who removes it when the review is over. Our comparison of AWS and Azure looks at how choices like that shape the cost of running an app.
AWS lists nine launch regions and a free Basic plan with up to 25 apps and two backends. For a team trying Amplify, the revealing first demo is modest: give two reviewers separate accounts, put one fictional seat on sale, and ask both to buy it. An empty preview protects the audience. A carefully populated one can tell you what that audience will experience.