Aurora PostgreSQL Database Branching (Preview): Setup, Cost and Limits

Logeshwaran
—

Database branching for Amazon Aurora PostgreSQL, in preview since December 2, 2026, gives every developer, pull request or AI coding agent its own private copy of the production database to test changes on.

⚡ Quick Answer

• What it is: an isolated, writable, copy-on-write branch of your Aurora PostgreSQL cluster, with its own serverless compute and endpoint. Production never sees the changes.

• Create one: RDS console → your cluster → Branches tab → Create branch, or aws rds create-branch --branch-name my-branch --source-db-cluster-identifier my-prod-cluster

• Cost: no charge for branching itself; you pay Aurora Serverless compute (zero when idle) and storage for the data you change.

• Where: Aurora PostgreSQL 17 and higher, preview in US East (Ohio), Europe (Frankfurt) and Asia Pacific (Mumbai).

• Watch out: every branch has a time-to-live (1 hour to 90 days) and is deleted with its data when it expires.

Jump to: Basics · Cost · Setup · Create a branch · Branch vs clone · FAQ

Here’s the catch: a branch is built to disappear. You must give it an expiry date, and when the time is up Aurora deletes it with everything on it. That’s great for keeping test copies from piling up, and a nasty surprise if you treated one like a dev database you meant to keep.

Jake wanted a “discount code” column on his orders table. Last time he tested a database change on the real shop, a typo locked the table for ten minutes on a Friday evening.

Jake: "Is there a way to try it on the real data without touching the real shop?"

Ethan: "Now there is. We make a branch: same data, its own copy, gone on its own when we’re done."

New to this? The plain-English version

  • Cluster: your Aurora database, the one your app talks to.
  • Branch: a private copy of that database for testing. You can change anything on it; the original doesn’t notice.
  • Copy-on-write: the branch doesn’t copy your data up front. It reads the original and only stores the parts you change, which is why it’s fast and cheap.
  • Schema migration: a change to the database’s structure, such as adding a column or an index.
  • Serverless and ACU: the branch’s computer grows and shrinks on its own, measured in Aurora Capacity Units, and stops costing compute when nobody uses it.
  • TTL (time-to-live): the branch’s expiry timer.

Jake: "So it’s like photocopying the shop’s order book and scribbling on the copy?"

Ethan: "Better: the copy is instant, and it only takes up space for the pages you scribble on."

Can you use it today? Three quick questions

  1. Is your database Aurora PostgreSQL version 17 or later? Aurora MySQL and older PostgreSQL versions aren’t supported.
  2. Is it in US East (Ohio), Europe (Frankfurt) or Asia Pacific (Mumbai)? Those are the preview Regions.
  3. Is this for testing, not production? It’s a preview, and branches have no backups or failover.

What Aurora branching costs

WhatPriceNotes
Creating and keeping a branchNo extra chargeBranching itself is free
Branch computeAurora Serverless ratesScales to 0 ACU when idle, so an unused branch costs no compute
Branch storageAurora storage ratesOnly for the data you change on the branch
AWS Free TierIncluded limitsUp to 10 branches per cluster, 4 ACU maximum each

The cheapest branch is the one that goes to sleep. Set a short pause time (for example SecondsUntilAutoPause=300) and a sensible maximum capacity, and delete branches when the pull request closes.

Step 1: Set up access once (admin)

Branches inherit the parent cluster’s security, so an admin sets this up one time:

  1. Add rds:CreateBranch, rds:DeleteBranch and rds:DescribeBranches to the roles your developers, agents and pipelines already use. Scope them to specific clusters or tags. Roles with full Aurora access already have them.
  2. Decide which database users and roles people connect with. IAM database authentication lets you control branch access with IAM instead of passwords.
  3. Set up Aurora dynamic data masking on sensitive columns, such as emails or card numbers. Branches inherit the masking, so testers see production-shaped data without the private parts.

Step 2: Create a branch

In the console: open the RDS console, pick the Region and your cluster, choose the Branches tab, then Create branch. The cluster is already filled in as the source; set the time-to-live and capacity, then create it.

With the AWS CLI, the minimum is a name and the source cluster:

💻 Where to run these commands

Easiest: AWS CloudShell, nothing to install. Sign in to the AWS Management Console, choose your Region at the top right, then click the CloudShell icon (a small >_ terminal symbol) in the top bar, or type CloudShell in the search box and open it. When the $ prompt appears, paste a command and press Enter. CloudShell already has the AWS CLI, uses your console permissions and costs nothing extra.

On your own computer: install AWS CLI version 2 (installers for Windows, macOS and Linux are on the AWS CLI page), run aws configure once (or aws configure sso if your company signs in through single sign-on), and check it works with aws sts get-caller-identity. Then paste commands into Terminal on Mac or Linux, or PowerShell or Command Prompt on Windows.

Windows tip: a line ending in a backslash ( \ ) continues on the next line in CloudShell, Mac and Linux. In PowerShell use a backtick ( ` ) instead, in Command Prompt a caret ( ^ ), or simply join the lines into one. JSON inside single quotes works as shown in CloudShell; on Windows, save the JSON in a file and pass it as file://name.json.

Replace example values such as my-bucket, my-function, 111122223333 (an account ID) and us-east-1 with your own.

aws rds create-branch \
  --branch-name feature-discount-code \
  --source-db-cluster-identifier my-prod-cluster

A fuller version sets a 7-day TTL (604,800 seconds), a capacity limit, auto-pause after 5 idle minutes and a tag:

aws rds create-branch \
  --branch-name feature-discount-code \
  --source-db-cluster-identifier my-prod-cluster \
  --ttl-seconds 604800 \
  --scaling-configuration MaxCapacity=8,SecondsUntilAutoPause=300 \
  --tags Key=team,Value=backend

Branch from another branch by adding --source-branch-name; its TTL can’t outlast the source branch’s remaining time. During the preview you can’t change a branch’s settings after creating it, so pick the TTL and capacity up front.

Step 3: Connect, test and clean up

  1. List your branches and their status: aws rds describe-branches --db-cluster-identifier my-prod-cluster --branch-name feature-discount-code, or look at the Branches tab (status, size, TTL, created at).
  2. Connect to the branch’s own read/write endpoint with the same database users as production. It sits in the parent’s VPC and security groups, so connect from where you already reach the cluster.
  3. Run your migration, your tests, or let your AI coding agent work. Read, write, add indexes and run DDL freely.
  4. Delete it when you’re done: aws rds delete-branch --branch-arn followed by the branch ARN, or select it on the Branches tab, choose Delete and type confirm. The source cluster and other branches aren’t affected.

For pull requests: use Amazon EventBridge with AWS CodePipeline or GitHub Actions to create a branch when a pull request opens and delete it when it closes. When the tests pass, apply the same migration to production with your usual tool, such as Flyway or Liquibase. If GitHub Actions can’t reach AWS, see our GitHub Actions OIDC fix.

Jake: "And if the migration breaks the branch?"

Ethan: "Then it broke a copy. We delete it, fix the script and make a new one in seconds. The shop never noticed."

Branch vs clone vs Blue/Green: which one to use

Database branchAurora cloneBlue/Green Deployment
Best forTesting schema and app changes in CI/CD and AI-agent workLong-lived dev, QA or analytics copiesProduction changes such as major version upgrades
LifetimeShort; required TTL, auto-deletedUntil you delete itTemporary, then switched into production
ComputeServerless only, scales to zeroYour choice, including provisioned instancesMirrors production
ControlInherits parent settings; no parameter changes or replicasFull: parameters, read replicas, own backupsStaged copy you validate, then switch

Branches aren’t for load testing or benchmarking: their compute can differ from production, so the numbers won’t tell you the truth. Use a clone for that.

Limits worth knowing

LimitValue
Branches per cluster50 (10 on the AWS Free Tier)
Branches per account2,000
Branch depthOne level of child branches
Capacity0 ACU minimum; default maximum 16 ACU, up to 64 ACU (4 on the Free Tier)
Time-to-live1 hour to 90 days, no longer than the source’s remaining TTL
AvailabilitySingle instance: no Multi-AZ, no automated backups, no SLA

Aurora also manages each branch’s engine version and copies the parent’s parameters, including later changes, so you can’t tune a branch separately. Monitor it with CloudWatch Database Insights or PostgreSQL’s built-in statistics views.

Common mistakes with Aurora branches

MistakeWhat happensDo this instead
Keeping real work only on a branchIt’s deleted with its data when the TTL endsApply finished changes to the real cluster; treat branches as disposable
Looking for branching on Aurora MySQLThe Branches tab isn’t thereIt’s Aurora PostgreSQL 17+ only in the preview
Creating it in another RegionNot availableUse Ohio, Frankfurt or Mumbai
Benchmarking on a branchMisleading numbersUse an Aurora clone sized like production
Setting a huge TTL “just in case”Forgotten branches keep storageShort TTLs, and delete on pull request close
Skipping data maskingTesters see private customer dataSet dynamic data masking on the parent first

The other Aurora launches on December 2

  • Database cluster groups (preview, Aurora MySQL 8.4): manage several clusters as one, with coordinated upgrades, maintenance and point-in-time-consistent backups, plus one routing endpoint that sends each query to the cluster that holds the data. Free during the preview.
  • Data groups (preview, Aurora PostgreSQL): for apps with many customers in one database. Each tenant can have its own KMS key, be restored on its own and move to another cluster in seconds. It runs on PostgreSQL 19 beta 4 in the RDS Database Preview environment in US East (Ohio).
  • Aurora PostgreSQL to S3 Tables (preview): continuously copies the tables you pick into S3 Tables as Apache Iceberg, within minutes, with column filters for private data. Query the copy with Athena or EMR. PostgreSQL 16.4+, 17.4+ and 18.3+.

How Jake tested his change

  1. Ethan upgraded the shop’s Aurora PostgreSQL cluster to version 17 in US East (Ohio), where it already ran.
  2. He created a branch called feature-discount-code with a 7-day TTL and auto-pause after 5 minutes.
  3. Jake’s migration script added the column on the branch. The first version had the same typo as last time, and only the branch noticed.
  4. They fixed the script, made a fresh branch, and the test passed on real order data.
  5. Ethan ran the fixed migration on production at a quiet hour and deleted the branch.

Jake: "So the typo happened, just not to the shop?"

For readers preparing for an AWS certification

We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.

Exams that test this topic: Developer – Associate (DVA-C03 from December 1, 2026) • Solutions Architect – Associate (SAA-C03) • DevOps Engineer – Professional (DOP-C02).

Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:

1. Developers need an isolated, writable copy of a production Aurora PostgreSQL database for each pull request, created in seconds and removed automatically. Which feature fits?

Aurora PostgreSQL database branching (preview): copy-on-write branches with their own serverless compute and endpoint, and a required TTL after which Aurora deletes them.

2. A team needs a long-lived copy of production Aurora data with provisioned instances, custom parameters and read replicas for analytics. Branch, clone or Blue/Green?

An Aurora clone. Branches are short-lived, serverless-only and inherit parameters; Blue/Green Deployments are for moving production changes such as major version upgrades.

3. Testers must use production-shaped data in Aurora branches without seeing customer emails. What should be configured?

Aurora dynamic data masking policies on the parent cluster; branches inherit the parent cluster's masking, users, roles and encryption.

4. Which IAM actions does a CI/CD role need to create, list and remove Aurora database branches?

rds:CreateBranch, rds:DescribeBranches and rds:DeleteBranch, scoped to the relevant clusters or tags.

5. A company replicates Aurora PostgreSQL tables into its data lake for near-real-time Athena queries without building pipelines. Which feature?

The Aurora PostgreSQL integration with Amazon S3 Tables (preview), which continuously replicates selected tables as Apache Iceberg tables within minutes.

Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.

Ethan: "Exactly. That’s the whole point: make the mistakes on a copy."

Aurora branching documentation and official references

Frequently asked questions

What is Aurora database branching?

A preview feature, announced December 2, 2026, that gives you an isolated, writable copy of your Aurora PostgreSQL cluster’s data in seconds. Each branch has its own serverless compute and endpoint, and changes on it never touch production.

How much does Aurora database branching cost?

There is no extra charge for branching itself. You pay Aurora Serverless rates for the compute a branch uses, which drops to zero when idle, plus storage for the data you change on the branch.

Which Aurora versions and Regions support branching?

Aurora PostgreSQL version 17 and higher, in preview in US East (Ohio), Europe (Frankfurt) and Asia Pacific (Mumbai). Aurora MySQL isn’t supported.

How do I create a branch of an Aurora database?

In the RDS console, open the cluster, choose the Branches tab and then Create branch. With the AWS CLI: aws rds create-branch --branch-name my-branch --source-db-cluster-identifier my-prod-cluster.

Does an Aurora branch copy all my data?

No. A branch starts by sharing the parent cluster’s data pages (copy-on-write) and only stores what you change, so it’s fast to create and small at first, even for a large database.

How long does an Aurora branch last?

Every branch needs a time-to-live between 1 hour and 90 days. When it expires, Aurora deletes the branch and its data automatically, so save anything you need first.

How many branches can I create in Aurora?

Up to 50 per cluster (10 on the AWS Free Tier) and up to 2,000 per AWS account. You can branch from a branch, but only one level deep.

Is Aurora branching safe to use with production data?

It’s designed for it: changes stay on the branch, and the branch inherits the parent’s encryption, database users and roles and dynamic data masking, so masked columns stay masked. It is still a preview, so don’t run production workloads on a branch.

What is the difference between an Aurora branch and an Aurora clone?

Branches are short-lived, serverless-only test copies that expire on their own. Clones are full, long-lived clusters where you choose instance types, change parameters, add read replicas and keep backups.

Should I use Blue/Green Deployments or branching for a major version upgrade?

Blue/Green Deployments. They stage the change and switch production to it with minimal downtime. Branches are for testing schema and application changes, not for moving production.

Can I load test on an Aurora branch?

No. A branch runs on serverless compute that can differ from production and is a single instance without Multi-AZ, so its performance numbers don’t represent production.

What IAM permissions does Aurora branching need?

rds:CreateBranch, rds:DeleteBranch and rds:DescribeBranches, which you can scope to specific clusters or tags. Roles with full Aurora access already include them.

How do I delete an Aurora branch?

In the console, select it on the Branches tab, choose Delete and type confirm. With the CLI: aws rds delete-branch --branch-arn followed by the branch ARN. Deleting is permanent but doesn’t affect the source cluster or other branches.

Can AI coding agents create Aurora branches?

Yes. Branches can be created and managed through the console, the AWS CLI, the SDKs and the AWS MCP Server, so a coding agent can test its migration on its own branch.

Can I change a branch’s settings after creating it?

Not during the preview. Set the time-to-live and the maximum capacity (up to 64 ACU, default 16, or 4 on the Free Tier) when you create the branch.

What are Aurora database cluster groups?

A preview for Aurora MySQL 8.4 that manages several clusters as one group: coordinated upgrades and backups, a single routing endpoint that sends each query to the cluster holding the data, and moving tables between clusters while they keep serving.

What are Aurora data groups?

A preview for multi-tenant Aurora PostgreSQL apps: each tenant gets its own KMS key, can be restored on its own and can move to another cluster in seconds. It runs on PostgreSQL 19 beta 4 in the RDS Database Preview environment in US East (Ohio).

How does Aurora PostgreSQL replicate to S3 Tables?

A managed integration, in preview, copies the tables you choose into S3 Tables as Apache Iceberg tables within minutes and keeps inserts, updates, deletes and schema changes in sync. You can filter out sensitive columns and query the copy with Athena or EMR.

Revision note. Written December 2, 2026, the day branching entered preview. Preview limits, Regions and defaults can change before general availability, so check the live limits page before you build a pipeline on it. “Look before you leap”: test the migration on a branch before it touches the shop.

Related