How would Aurora PostgreSQL branching work for isolated tests?

December 4, 2026 5 answers
Asked by Marnexo+8t

I'm looking at the Aurora PostgreSQL branching preview for pull request and agent testing. How isolated are the branches, and when would they make more sense than an Aurora clone?

Answers

6b+canvasratchet_947

A branch is a copy-on-write copy of the parent cluster with its own endpoint and serverless compute. That gives each test a separate place to make changes without writing them to production, while storing the data changed on the branch rather than making a full separate copy upfront.

You can set a lifetime from one hour to 90 days, and branches can be created from other branches. The preview supports up to 50 branches per cluster and requires Aurora PostgreSQL 17 or later.

_k46+vexdaro.9:

The branch uses serverless compute even if the parent cluster uses provisioned compute.

Reply to this answer
q.738~mivdaro

For schema testing, yes, you can change tables on the branch. Adding or renaming columns and creating indexes are examples. But there is no merge back into production, so a successful test still needs a normal migration or deployment process.

Reply to this answer
q.764+zordelo

The clone comparison is less about copy-on-write storage, since both use it, and more about the kind of environment you need. Branches have serverless compute and a built-in lifetime, which fits temporary tests. Clones are full clusters and give you more control over things like instance types, parameters, and read replicas, making them a better fit for a long-lived environment.

If cost is the main reason you're cloning today, don't assume branching automatically changes the storage picture. Check the compute and lifecycle tradeoffs for your workload too.

Reply to this answer
c.948+plavduni

One security detail deserves a closer look: branches retain the parent's users, roles, encryption, and data masking. That can help keep masked columns hidden, but it doesn't mean every piece of production data is safe for every tester or agent. Check the existing permissions and masking before giving a branch to a new workflow.

Reply to this answer
_p85~fendquari.3

I'd test it with a representative large database before building a whole pipeline around it. The source discussion raises questions about practical performance at that size and whether a configurable data subset would be useful, but it doesn't establish answers to either.

Also check availability before planning a rollout. The preview was described as available in Ohio, Frankfurt, and Mumbai, with broader regional availability requested.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions