게시 2026-12-04Published 2026-12-04Database읽는 시간 13분13 min read직접 테스트: 오하이오 리전, Aurora PostgreSQL 17.11, 8.1GiB 데이터베이스, 브랜치 생성 시간 8회, 마이그레이션 10개 검증 2회, 무거운 변경 7건, AI 에이전트 작업 1회 실행Tested first-hand: Ohio Region, Aurora PostgreSQL 17.11, 8.1 GiB database, 8 runs of branch creation time, 2 runs of the 10-migration check, 7 heavy changes, 1 run of the AI agent tasks

Amazon Aurora PostgreSQL 데이터베이스 브랜칭Amazon Aurora PostgreSQL Database Branching

Amazon Aurora PostgreSQL 데이터베이스 브랜칭은 운영 클러스터의 데이터를 복사하지 않고 쓰기 가능한 사본인 브랜치를 만드는 기능입니다. 브랜치가 있으면 스키마 변경을 운영에 적용하기 전에 운영 데이터에서 한 번 실행해 보는 일이 명령 한 줄과 1분 30초 안팎의 대기로 끝납니다. 오하이오 리전에서 8.1GiB 데이터베이스를 가진 Aurora PostgreSQL 클러스터에 브랜치 47개를 만들어 직접 테스트해 보았습니다. 시드 데이터에서 통과하던 제약 조건 두 개가 운영 데이터의 브랜치에서 실패했습니다. 테이블 재작성이 앱을 멈추는 시간은 브랜치에서 측정한 값이 운영 역할의 부모 클러스터에서 그대로 나왔습니다. AI 에이전트 3개는 각자 브랜치에서 마이그레이션을 완성했습니다. Git의 브랜치와 다른 점도 있습니다. 브랜치마다 접속 주소가 따로 생기고 병합이 없어서 검증한 마이그레이션을 운영에 다시 실행해야 합니다. 프리뷰에서는 RDS Data API를 활성화했거나 고객 관리형 키로 암호화한 클러스터에서 브랜치를 만들지 못했습니다.Database branching for Amazon Aurora PostgreSQL creates a branch, a writable copy of a production cluster, without copying its data. With a branch, running a schema change once against production data before it reaches production takes one command and a wait of about a minute and a half. I created 47 branches on an Aurora PostgreSQL cluster with an 8.1 GiB database in the Ohio Region and tested it myself. Two constraints that passed on seed data failed on a branch of the production data, and the time a table rewrite blocked the app, measured on a branch, came out the same on the parent cluster that plays production. Three AI agents each finished a migration on their own branches. It also differs from a Git branch. Each branch gets its own endpoint, and there is no merge, so a verified migration has to be run again on production. In the preview, a cluster with the RDS Data API enabled or with storage encrypted under a customer managed key could not be branched.

#Amazon Aurora#Aurora PostgreSQL#Database Branching#Aurora Serverless#Schema Migration#AI Agent

운영 데이터에서 먼저 실행해 보는 스키마 변경

AWS는 2026년 12월 2일에 Amazon Aurora PostgreSQL의 데이터베이스 브랜칭을 프리뷰로 발표했습니다. 발표문은 개발자와 AI 코딩 에이전트가 데이터베이스 변경을 운영 데이터에서 검증하는 기능으로 소개합니다.

데이터베이스 브랜칭은 운영 클러스터의 데이터를 복사하지 않고 쓰기 가능한 사본인 브랜치를 명령 한 줄로 만드는 기능입니다. 브랜치는 원본인 부모 클러스터와 스토리지를 함께 사용하면서 바뀐 데이터만 따로 저장하고 접속 주소와 서버리스 컴퓨팅은 브랜치마다 따로 생깁니다. 브랜치에서 바꾼 스키마와 데이터는 부모에 반영되지 않습니다. 코드를 고칠 때처럼 데이터베이스 변경도 변경마다 따로 만든 운영 데이터의 사본에서 검증하고 버릴 수 있게 됐다는 점에 이 기능의 의미가 있습니다.

브랜치가 있으면 스키마 변경을 운영에 적용하기 전에 운영 데이터에서 한 번 실행해 보는 일이 명령 한 줄과 1분 30초 안팎의 대기로 끝납니다. 직접 테스트해 보니 이 한 번의 실행에서 두 가지가 드러났습니다. 시드 데이터에서는 통과하던 제약 조건이 운영 데이터의 중복과 예전 표기로 남은 값 때문에 실패했습니다. 테이블을 재작성하는 변경이 앱을 얼마나 오래 멈추는지도 초 단위로 나왔습니다. 브랜치에서 무거운 변경을 실행하는 동안 부모 클러스터의 응답 시간은 변하지 않았습니다. 하지만 Git의 브랜치와 같은 것을 기대하면 두 군데에서 어긋납니다. 브랜치마다 접속 주소가 따로 생기고 병합이 없어서 검증한 마이그레이션을 운영에 다시 실행해야 합니다.

지금까지 이 검증에는 두 가지 방법이 있었습니다. 하나는 팀이 함께 사용하는 스테이징 데이터베이스입니다. 데이터가 운영과 다르고 한 사람이 스키마를 바꾸면 다른 사람의 테스트가 깨지므로 순서를 기다려야 합니다. 다른 하나는 Aurora 클론입니다. 운영 데이터를 그대로 볼 수 있지만 클러스터와 인스턴스를 새로 만들어야 해서 이번 측정에서는 첫 쿼리까지 8분 넘게 걸렸습니다. 변경 한 건마다 만들고 지우기에는 무겁습니다. AI 에이전트가 마이그레이션을 하루에도 여러 개씩 만들기 시작하면 두 방법 모두 검증이 변경의 속도를 따라가지 못합니다.

전체 시험 구성. 측정 클라이언트가 부모 클러스터의 클러스터 엔드포인트와 브랜치마다 다른 브랜치 엔드포인트에 연결하고 브랜치는 전용 서버리스 컴퓨팅을 사용하며 스토리지는 부모와 공유하는 구조
그림 1. 전체 시험 구성. 부모 클러스터 하나에서 변경마다 브랜치를 만들어 검증했습니다

확인할 것은 브랜치가 이 검증을 실제로 대신할 수 있는가입니다. 변경된 스키마에서 앱이 문제없이 실행되는지 확인하는 데 유용한지, 인덱스 생성이나 테이블 재작성처럼 무거운 변경에도 활용할 수 있는지를 먼저 측정했습니다. 이어서 Git처럼 별도 엔드포인트 없이 바로 연결되는지, AI가 만드는 변경의 속도를 감당하는지를 측정했습니다.

01

부모 클러스터 하나와 변경마다 만든 브랜치

시험은 프리뷰 리전 가운데 미국 동부(오하이오)에서 했습니다. 운영 역할을 하는 부모 클러스터는 Aurora PostgreSQL 17.11이고 Aurora Serverless v2 0.5~16 ACU로 만들었습니다. ACU(Aurora Capacity Unit)는 Aurora Serverless의 용량 단위이고 문서는 1 ACU를 메모리 약 2GiB와 그에 맞는 CPU, 네트워크로 설명합니다. 부모 클러스터는 RDS Data API를 비활성화했고 저장 데이터 암호화는 기본값인 AWS 소유 키로 두었습니다. 다른 설정에서는 브랜치 생성이 거부됐기 때문입니다.

데이터는 주문 서비스를 본뜬 shop 데이터베이스이고 크기는 8.1GiB입니다. 고객 200만 행, 주문 2,000만 행, 주문 항목 6,000만 행을 넣었고 운영 데이터에 흔한 결함 두 가지를 일부러 섞었습니다. 같은 이메일로 다시 가입한 고객 1,000명과 예전 표기 CANCELED로 저장된 주문 1,998건입니다. 주문 테이블에는 고객 번호 인덱스를 만들지 않았습니다.

앱은 Python으로 만든 두 버전입니다. v1은 현재 스키마를 사용하고 v2는 다음 릴리스의 스키마를 사용합니다. v2는 고객 이름 열을 name으로 읽고 orders.currency 열을 사용하며 orders.note 열은 사용하지 않습니다. 버전마다 테스트 7개가 고객 조회, 주문 목록, 주문 상세, 주문 생성과 취소, 일 매출을 실행합니다. 그중 하나는 주문 목록 쿼리의 p95 응답 시간(요청의 95%가 이 시간 안에 끝나는 값)이 200ms 안에 들어오는지 확인합니다.

브랜치는 이름과 부모 클러스터만 지정해 만듭니다. 개발 서버에 있던 AWS CLI 2.42.1에는 브랜치 명령이 없어서 2.43.2를 설치해 실행했습니다.

bash
aws rds create-branch --region us-east-2 \
  --branch-name first-look --source-db-cluster-identifier abl-prod
json
{
    "Branch": {
        "BranchArn": "arn:aws:rds:us-east-2:<account-id>:branch:cluster-<id>/br-<id>",
        "BranchCreateTime": "2026-12-04T02:07:11+00:00",
        "BranchExpiryTime": "2026-12-05T02:07:11+00:00",
        "BranchName": "first-look",
        "Engine": "aurora-postgresql",
        "EngineVersion": "17.11",
        "IAMDatabaseAuthenticationEnabled": true,
        "Port": 5432,
        "ScalingConfiguration": {
            "MaxCapacity": 16.0,
            "SecondsUntilAutoPause": 300
        },
        "SourceArn": "arn:aws:rds:us-east-2:<account-id>:cluster:abl-prod",
        "Status": "creating",
        "TtlSeconds": 86400
    }
}

응답은 일부 필드를 생략하고 식별자를 가린 것입니다. 호출은 1.2초 만에 creating 상태로 돌아왔습니다. TtlSeconds는 브랜치의 수명(TTL)이고 이 시간이 지나면 Aurora가 브랜치를 삭제합니다. 지정하지 않으면 24시간이며 1시간에서 90일 사이로 정합니다. MaxCapacity는 브랜치 컴퓨팅의 최대 용량으로 기본값이 16 ACU이고 64 ACU까지 올릴 수 있습니다. 최소 용량은 따로 지정하지 않으며 연결이 없으면 0 ACU까지 내려갑니다.

상태가 available로 바뀌면 엔드포인트가 나옵니다. 부모에 연결할 때와 같은 사용자와 암호로 이 주소에 연결합니다. 아래 출력에서 엔드포인트의 식별자는 가렸습니다.

bash
$ aws rds describe-branches --region us-east-2 --db-cluster-identifier abl-prod \
    --branch-name first-look --query 'Branches[0].[Status,Endpoint]' --output text
available	<id>.branch.us-east-2.rds.amazonaws.com

$ psql -h <id>.branch.us-east-2.rds.amazonaws.com -U postgres -d shop \
    -c "select current_database() as db, current_user as usr, pg_is_in_recovery() as read_only, current_setting('server_version') as version"
  db  |   usr    | read_only | version 
------+----------+-----------+---------
 shop | postgres | f         | 17.11
(1 row)

02

같은 클러스터에 생기지만 주소는 별도 브랜치

브랜치는 Git의 브랜치처럼 같은 접속 주소 안에서 전환되지 않습니다. 브랜치마다 <id>.branch.us-east-2.rds.amazonaws.com 형식의 엔드포인트와 전용 서버리스 컴퓨팅이 생기므로 앱과 마이그레이션 도구의 접속 주소를 브랜치의 주소로 바꿔야 합니다. 부모와 함께 사용하는 것은 스토리지입니다. 문서는 브랜치가 부모의 데이터 페이지를 공유하고 브랜치에서 바뀐 데이터만 따로 저장하는 쓰기 시 복사(copy-on-write) 방식이라고 설명합니다. 브랜치는 describe-branches로만 조회됐고 describe-db-clusters와 describe-db-instances의 목록에는 나오지 않았습니다.

접속에 필요한 설정은 부모에서 그대로 내려왔습니다. 보안 그룹과 서브넷 그룹이 같아서 부모에 연결하던 클라이언트가 규칙을 추가하지 않고 브랜치에 연결됐습니다. 부모의 사용자 암호, IAM 데이터베이스 인증 토큰, TLS 1.3 연결도 브랜치 엔드포인트에서 그대로 동작했습니다. 부모의 클러스터 파라미터 그룹에서 log_min_duration_statement를 바꾸자 5.2초 뒤에 브랜치의 값도 바뀌었습니다.

브랜치 한 개의 수명. 생성 호출, 첫 쿼리, 자동 일시 중지, 다시 연결, 삭제의 단계별 시간과 새 브랜치의 분 단위 용량 변화, 같은 부모에서 측정한 Aurora 클론과의 시간 비교
그림 2. 브랜치 한 개의 수명. 단계별 시간과 새 브랜치의 용량 변화, Aurora 클론과의 비교입니다

생성 호출부터 첫 쿼리가 성공하기까지는 8.1GiB 부모에서 5회 중앙값이 91.5초였고 범위는 87.0~161.8초였습니다. 데이터를 넣기 전의 빈 부모에서도 3회 중앙값이 90.5초여서 이 크기에서는 데이터 양이 시간을 좌우하지 않았습니다. 같은 부모에서 만든 Aurora 클론은 두 번 측정해 487.8초와 517.9초였습니다. 삭제도 브랜치는 56.7초, 클론은 455.4초와 554.6초였습니다.

브랜치가 보는 데이터는 생성 시점에 커밋된 내용입니다. 부모의 최신 데이터가 필요하면 브랜치를 새로 만들어야 합니다. 부모가 주문 테이블을 한 트랜잭션으로 채우는 도중에 만든 브랜치에서는 주문이 0행이었습니다. 그 뒤로는 양쪽의 변경이 서로 보이지 않았습니다. 브랜치에서 열 타입을 바꿔도 부모의 열은 그대로였고 부모에 나중에 적용한 변경은 먼저 만든 브랜치에 나타나지 않았습니다.

브랜치는 연결이 없는 채로 300초가 지나면 0 ACU로 내려가 일시 중지됩니다. 이때도 상태는 available로 표시됩니다. 일시 중지된 브랜치의 첫 연결은 4회 중앙값이 19.5초였습니다. 연결 제한 시간이 5초인 클라이언트는 그동안 실패했습니다. 아래는 일시 중지된 브랜치에 5초 제한으로 연결을 반복한 출력이고 용량은 마지막 한 줄만 남겼습니다.

text
# 2026-12-04T03:51:32Z branch t3-rw4, PGCONNECT_TIMEOUT=5
status: available
-- ServerlessDatabaseCapacity of the last 10 minutes (time, average, maximum)
2026-12-04T03:50:00+00:00	0.0	0.0
attempt 1: rc=2 after 5.0 s, 5.0 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 2: rc=2 after 5.0 s, 10.0 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 3: rc=2 after 5.0 s, 15.1 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 4: rc=2 after 5.0 s, 20.1 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 5: rc=0 after 4.0 s, 24.1 s since the first attempt: connected

브랜치 3개에서 같은 시험을 했고 첫 시도부터 21.5~25.9초가 지나 연결됐습니다. 브랜치에 연결하는 테스트와 CI 작업은 연결 제한 시간과 재시도 횟수를 이 값에 맞춰야 합니다. 문서는 다시 시작하는 데 15초쯤 걸리므로 클라이언트의 제한 시간을 그보다 길게 설정하라고 권장하는데 이번 측정에서는 더 오래 걸렸습니다.

03

운영 데이터의 브랜치에서만 드러난 실패

변경된 스키마에서 앱이 실행되는지 확인하는 용도에는 브랜치가 그대로 맞았습니다. 마이그레이션 10개를 각각 새 브랜치에 적용하고 그 브랜치에서 앱 v1과 v2의 테스트를 실행했습니다. 같은 시험을 두 번 했고 통과한 테스트 수는 두 번 모두 같았습니다.

마이그레이션적용 결과v1 통과v2 통과
변경 없음62
통화 열 추가성공, 0.2초와 0.1초65
주문 목록 인덱스(CREATE INDEX CONCURRENTLY)성공, 12.1초와 12.4초72
고객 이름 열의 이름 변경성공, 0.1초53
이메일 유일 제약실패62
중복 이메일 정리 뒤 유일 제약성공, 5.9초와 5.7초62
주문 상태 CHECK 제약실패62
예전 표기 값 수정 뒤 CHECK 제약성공, 5.8초와 5.6초62
주문 이벤트 테이블 추가성공, 0.2초62
주문 메모 열 삭제성공, 0.1초52
다음 릴리스 묶음(통화 열, 이름 변경, 메모 열 삭제, 인덱스)성공, 12.2초와 12.7초57

표 1. 마이그레이션별 적용 결과와 통과한 테스트 수. 테스트는 버전마다 7개이고 적용 시간은 두 번의 값

실패한 두 건은 시드 데이터에서는 나오지 않았습니다. 고객 100명 규모의 시드 데이터베이스에서는 두 제약이 모두 적용됐고 v1 테스트 7개가 통과했습니다. 운영 데이터의 브랜치에서는 같은 파일이 다음 오류로 멈췄습니다.

text
ERROR:  could not create unique index "customers_email_key"
DETAIL:  Key (email)=(user47976@example.com) is duplicated.

ERROR:  check constraint "orders_status_chk" of relation "orders" is violated by some row

실패한 브랜치에서 원인이 된 행을 바로 조회했습니다. 중복 이메일을 정리하는 문장과 예전 표기 값을 수정하는 문장을 넣은 마이그레이션은 새 브랜치에서 적용됐습니다.

응답 시간 테스트도 운영 크기의 데이터에서만 뜻이 있었습니다. 변경 없는 브랜치에서 v1이 6개만 통과한 것은 주문 목록 쿼리의 p95가 300ms를 넘었기 때문입니다. 시드 데이터에서는 같은 쿼리의 p95가 1.2ms여서 통과했습니다. 인덱스를 추가한 브랜치에서는 7개가 모두 통과했습니다.

배포 순서의 문제도 배포 전에 드러났습니다. 릴리스 묶음을 적용한 브랜치에서 v2는 7개가 모두 통과했지만 v1은 고객 조회와 주문 생성이 실패했습니다. 반대로 변경 없는 스키마에서 v2는 2개만 통과했습니다. 마이그레이션과 앱 가운데 어느 쪽을 먼저 배포해도 실패하는 구간이 생기므로 이 묶음은 나눠서 배포해야 합니다. 통화 열 추가는 v1에 영향이 없었고 이름 변경과 메모 열 삭제가 v1을 실패하게 했습니다.

04

브랜치에서 미리 확인한 잠금 시간과 소요 시간

무거운 변경에서 브랜치가 알려 준 것은 변경에 걸리는 시간과 그동안 앱이 멈추는 시간입니다. 브랜치에서 변경을 실행하는 동안 같은 브랜치에 앱의 읽기와 쓰기를 약 0.2초 간격으로 차례로 보내 응답이 멈춘 구간을 측정했습니다.

변경브랜치 최대 용량소요 시간앱 호출이 멈춘 시간데이터베이스 크기
열 타입 변경(주문 항목 테이블 재작성)4 ACU232.0초읽기 231.9초8.15GiB 그대로
같은 변경16 ACU148.1초, 149.2초읽기 147.8초, 148.8초8.15GiB 그대로
같은 변경64 ACU137.0초읽기 136.7초8.15GiB 그대로
인덱스 생성(CONCURRENTLY)16 ACU11.6초없음8.15에서 8.74GiB
인덱스 생성(CONCURRENTLY 없음)16 ACU8.0초쓰기 7.7초8.15에서 8.74GiB
열 추가와 전체 행 백필16 ACU271.2초없음8.15에서 10.06GiB

표 2. 브랜치에서 실행한 무거운 변경의 소요 시간과 앱 호출이 멈춘 시간. 16 ACU의 재작성만 2회, 나머지는 1회 실행

테이블 재작성은 ACCESS EXCLUSIVE 잠금을 잡으므로 앱의 읽기가 변경이 끝날 때까지 응답하지 않았습니다. 쓰기는 읽기 다음에 보냈기 때문에 그동안 실행되지 않았습니다. CONCURRENTLY로 만든 인덱스와 백필은 호출을 멈추지 않았고 그동안 읽기 p95가 11~14ms에서 72~84ms로 올랐습니다.

용량을 올려도 시간은 일정 수준까지만 줄었습니다. 재작성은 4 ACU에서 16 ACU로 올리면 84초 줄었지만 64 ACU에서는 11초 더 줄어드는 데 그쳤습니다. 리허설의 시간을 운영과 맞추려면 브랜치의 최대 용량을 부모의 용량에 맞춰 만들어야 합니다. 프리뷰에서는 브랜치의 설정을 만든 뒤에 바꿀 수 없기 때문입니다.

브랜치에서 이 변경들을 실행하는 동안 부모의 읽기 p95는 2.7~3.5ms로 변경 전과 같았습니다.

리허설의 값은 부모에서 그대로 재현됐습니다. 시험의 마지막에 같은 재작성을 최대 16 ACU인 부모에 실행했더니 149.9초가 걸렸고 앱의 읽기는 149.6초 동안 멈췄습니다. 재작성이 실행되는 도중에 만든 브랜치는 98.5초 만에 첫 쿼리에 응답했고 열 타입은 변경 전 그대로였습니다.

브랜치에서 확인하지 못하는 것도 있습니다. 브랜치에는 운영 트래픽이 없으므로 긴 트랜잭션 뒤에서 변경이 기다리는 잠금 대기 시간과 동시 쓰기가 많을 때의 영향은 나오지 않았습니다.

05

동시에 만든 브랜치와 AI 에이전트의 작업

변경이 한꺼번에 들어와도 변경마다 브랜치를 하나씩 만들어 동시에 검증했습니다. 표 1의 작업 10개는 동시에 시작한 것입니다. 10개가 모두 끝나기까지 첫 번째 실행은 291.8초, 두 번째 실행은 169.8초가 걸렸습니다. 작업별 시간의 합은 1,328.3초와 1,175.5초이므로 차례로 실행할 때의 22%와 14%입니다. 브랜치는 대부분 91.8~111.0초에 준비됐지만 실행마다 하나씩 281.6초와 154.1초가 걸린 브랜치가 있었고 그 브랜치가 전체 시간을 정했습니다.

브랜치를 동시에 여러 개 만들 때는 부모에 영향이 있었습니다. 10개를 만드는 약 100초 동안 부모의 읽기 p95가 2.9ms에서 20ms 안팎으로, 쓰기 p95가 6.0ms에서 30ms 안팎으로 올랐습니다. 중앙값의 변화는 2ms 안쪽이었고 오류는 없었습니다. 브랜치 하나를 만들 때는 부모의 응답 시간이 변하지 않았습니다.

AI 에이전트가 브랜치를 사용하는 방식도 시험했습니다. Claude Code의 서브에이전트 3개에 과제를 하나씩 주고 동시에 시작했습니다. 에이전트에게는 자기 이름의 브랜치를 만들고 지우는 명령과 그 브랜치에 SQL과 앱 테스트를 실행하는 명령만 사용하게 했습니다. 완성한 마이그레이션은 새 브랜치에 처음부터 한 번에 적용해 검증하게 했습니다.

AI 에이전트 3개의 동시 작업. 에이전트마다 브랜치 2개를 만들어 사용한 시간대와 일부러 실행한 실패, 최종 검증 시점, 브랜치의 운영 데이터에서 확인한 것과 완성한 마이그레이션, 같은 파일을 부모에 적용한 시간
그림 3. AI 에이전트 3개의 동시 작업. 에이전트마다 브랜치 2개를 사용했고 완성한 파일은 부모에 다시 실행했습니다

세 에이전트는 7분 34초에서 8분 37초 사이에 마이그레이션을 완성했고 최종 검증을 통과했습니다. 에이전트 A는 중복 이메일을, B는 예전 표기로 저장된 주문 상태를 브랜치의 운영 데이터에서 찾아 정리하는 단계를 마이그레이션에 넣었습니다. B와 C는 실패할 것으로 예상한 문장을 브랜치에서 일부러 실행해 오류를 확인했습니다.

에이전트의 보고에는 브랜치의 제약도 있었습니다. 첫 브랜치가 준비되는 약 90초 동안은 SQL을 실행하지 못했습니다. 새 브랜치는 캐시가 비어 있어 첫 쿼리가 느렸습니다. 브랜치를 생성 시점으로 되돌리는 기능이 없어서 완성본을 처음부터 적용하려면 브랜치를 하나 더 만들어야 했습니다.

브랜치에는 병합이 없습니다. 문서는 테스트가 통과하면 Liquibase나 Flyway 같은 도구로 마이그레이션을 운영에 적용하라고 안내합니다. 에이전트가 완성한 파일 3개를 부모에 차례로 실행했고 적용 시간의 합은 22.6초였습니다. 적용 뒤 부모에서 v1 테스트 7개가 모두 통과했습니다. 먼저 만들어 둔 브랜치에는 이 변경이 나타나지 않았습니다.

테스트가 확인하지 않는 변화는 브랜치에서도 드러나지 않았습니다. 에이전트 B의 마이그레이션이 예전 표기를 수정하자 하루치 매출 집계에 들어가는 주문이 9건 줄었는데 v1 테스트는 건수를 확인하지 않아 그대로 통과했습니다.

06

프리뷰에서 먼저 확인할 조건

브랜치를 만들기 전에 부모 클러스터의 설정부터 확인해야 합니다. 처음 만든 부모 클러스터에서는 create-branch가 두 번 거부됐고 설정을 바꿔 클러스터를 다시 만들었습니다. 표 3의 위 두 줄은 제한 사항 문서에 없던 조건입니다.

조건결과근거
RDS Data API를 활성화한 클러스터InvalidBranchSource로 거부직접 확인
고객 관리형 키나 AWS 관리형 키 aws/rds로 암호화한 클러스터InvalidBranchSource로 거부직접 확인
writer 인스턴스가 없는 클러스터InvalidBranchSource로 거부직접 확인
브랜치에서 만든 브랜치를 원본으로 지정InvalidBranchSource로 거부. 브랜치의 브랜치까지만 생성직접 확인, 문서
TTL1시간에서 90일. 1,800초는 거부직접 확인, 문서
최대 용량1~64 ACU. 128 ACU는 거부직접 확인
브랜치 수클러스터당 50개(프리 티어 10개), 계정당 2,000개문서
생성 뒤 설정 변경, Multi-AZ 장애 조치, 자동 백업, SLA프리뷰에서 지원하지 않음문서
리전오하이오, 프랑크푸르트, 뭄바이. 서울 리전의 API는 InvalidAction발표문, 직접 확인

표 3. 브랜치를 만들 때의 조건과 한도. 2026년 12월 4일 프리뷰 기준

문서의 예제와 AWS CLI 2.43.2의 동작이 다른 곳도 있었습니다.

  • 시작하기 문서의 예제는 --branch-arn으로 브랜치를 지정하지만 CLI에는 이 옵션이 없었습니다. --db-cluster-identifier와 --branch-name을 함께 지정해야 했습니다.
  • describe-branches의 필터 source-db-cluster-identifier는 유효하지 않은 필터 이름으로 거부됐습니다.
  • 브랜치에서 브랜치를 만들 때 --ttl-seconds를 함께 지정하면 InvalidParameterCombination이 나왔습니다. 자식 브랜치는 원본 브랜치와 같은 시각에 만료됩니다.
  • 브랜치 이름은 소문자로 저장됩니다. API-CHECK는 이미 있는 api-check와 같은 이름으로 처리됐습니다.

모니터링에서도 확인할 점이 있습니다. 클러스터 단위의 ServerlessDatabaseCapacity에는 브랜치의 용량이 함께 집계됐습니다. 이 지표에 경보를 걸어 둔 클러스터는 브랜치를 만들면 값이 달라집니다. 브랜치별 용량은 BranchName 차원으로 조회했고 브랜치가 차지하는 스토리지 크기를 보여 주는 지표는 찾지 못했습니다.

07

비용과 사용하기 좋은 사례

브랜치는 변경된 스키마에서 앱이 실행되는지 확인하는 일과 무거운 변경의 소요 시간과 잠금을 미리 확인하는 일에 유용했습니다. 여러 변경과 AI 에이전트의 작업도 변경마다 브랜치를 만들어 동시에 처리했습니다. Git처럼 별도 엔드포인트 없이 바로 연결되는 방식이 아니고, 별도의 엔드포인트가 필요합니다. 브랜치마다 주소가 따로 생기고 준비에 90초 안팎이 걸리며 검증한 변경은 운영에 다시 실행해야 합니다.

비용은 브랜치가 사용한 컴퓨팅에서 나옵니다. 발표문은 브랜칭에 추가 요금이 없고 브랜치가 사용한 서버리스 컴퓨팅과 브랜치에서 변경된 데이터에 요금이 부과된다고 안내합니다. 표 4는 CloudWatch의 분 단위 평균 용량에 오하이오 리전의 단가인 ACU 시간당 0.12달러를 곱한 값입니다.

작업컴퓨팅 비용
만들고 바로 지운 브랜치 1개0.018달러
가벼운 마이그레이션과 앱 테스트0.021~0.024달러
인덱스 생성이 들어간 마이그레이션과 앱 테스트0.036달러
테이블 재작성 리허설(4, 16, 64 ACU)0.096, 0.259, 0.614달러
백필 리허설(16 ACU)0.307달러
에이전트 과제 하나(브랜치 2개)0.129~0.135달러
이번 시험 전체(브랜치 47개, 28.6 ACU 시간)3.43달러

표 4. 작업별 브랜치 컴퓨팅 비용. 스토리지와 I/O 요금은 넣지 않았고 청구서와 대조하지 않은 계산값

새 브랜치는 만든 직후 최대 용량까지 올라갔고 마지막 연결이 끊긴 뒤에도 5분 동안 4.5 ACU를 유지했습니다. 쿼리 몇 개만 실행하고 그대로 둔 브랜치는 일시 중지될 때까지 0.06달러가 들어 바로 지운 브랜치의 3배가 넘었습니다. TTL은 삭제를 잊은 브랜치를 정리하는 용도로 두고 작업의 마지막 단계에서 delete-branch를 호출하는 편이 비용이 적습니다.

브랜치를 사용하기 좋은 사례는 운영 데이터에 따라 결과가 달라지는 변경의 검증입니다. 이번 시험에서 확인한 사례와 사용할 때의 조건을 표 5에 정리했습니다.

사례브랜치에서 확인하는 것조건
제약 조건 추가 전 검증유일 제약과 CHECK 제약이 운영 데이터에서 실패하는지와 원인이 된 행실패한 브랜치에서 원인을 조회하고 정리 문장을 넣어 새 브랜치에서 다시 적용
데이터 정리와 값 수정 스크립트정리와 수정이 운영 데이터 전체에서 끝나는지와 걸리는 시간테스트가 확인하지 않는 집계 값은 적용 전후를 따로 비교
무거운 변경의 리허설테이블 재작성, 인덱스 생성, 백필의 소요 시간과 앱 호출이 멈추는 시간브랜치의 최대 용량을 운영과 같게 지정. 잠금 대기와 부하의 영향은 나오지 않음
앱과 마이그레이션의 배포 순서 확인새 스키마에서 현재 버전과 다음 버전의 앱 테스트가 통과하는지릴리스 묶음을 적용한 브랜치와 변경 없는 브랜치에서 두 버전을 모두 실행
인덱스 추가 전후의 쿼리 응답 시간운영 크기의 데이터에서 쿼리 하나의 응답 시간새 브랜치는 캐시가 비어 있어 첫 쿼리가 느림. 부하 테스트에는 맞지 않음
여러 변경의 동시 검증변경마다 브랜치를 하나씩 만들어 마이그레이션 적용과 앱 테스트를 동시에 실행동시에 여러 개를 만들면 부모의 응답 시간이 잠시 오름. 연결 제한 시간과 재시도를 브랜치의 준비 시간에 맞춤
AI 에이전트의 작업 공간에이전트마다 자기 브랜치에서 탐색, 실패 확인, 최종 검증병합이 없어 완성한 파일을 운영에 다시 실행. 에이전트가 운영 데이터를 읽으므로 접근 권한을 먼저 확인

표 5. 브랜치를 사용하기 좋은 사례. 이번 시험에서 확인한 것과 사용할 때의 조건

맞지 않는 용도도 있습니다. 부하 테스트와 벤치마크에는 브랜치가 맞지 않습니다. 문서도 브랜치의 컴퓨팅이 운영과 다를 수 있다는 이유로 그렇게 안내합니다. 수명이 최대 90일이고 자동 백업이 없으므로 오래 유지하는 테스트 환경에는 Aurora 클론이 맞습니다.

브랜치에는 운영 데이터가 그대로 들어 있고 부모의 사용자와 암호로 연결됩니다. 개발자와 에이전트에게 브랜치를 열어 주면 운영 데이터를 읽게 됩니다. 문서는 IAM 정책과 동적 데이터 마스킹 정책을 부모에 설정해 두면 브랜치가 물려받는다고 안내하는데 이번 시험에서는 마스킹 정책의 상속을 확인하지 않았습니다.

먼저 운영 클러스터의 Data API와 암호화 키 설정이 브랜치의 조건에 맞는지 확인합니다. 조건이 맞으면 다음 마이그레이션 하나를 운영에 적용하기 전에 브랜치에서 실행해 실패 여부와 소요 시간을 확인합니다.

Schema changes run first against production data

On December 2, 2026, AWS announced database branching for Amazon Aurora PostgreSQL in preview. The announcement presents it as a way for developers and AI coding agents to test database changes against production data.

Database branching creates a branch, a writable copy of a production cluster, with one command and without copying the data. A branch shares storage with its source, the parent cluster, and stores only the data that changes, while each branch gets its own connection address and serverless compute. Schema and data changed on a branch do not reach the parent. What this means is that a database change, like a code change, can now be checked on its own copy of the production data and then thrown away.

With a branch, running a schema change once against production data before it reaches production takes one command and a wait of about a minute and a half. When I tested it, that single run showed two things. A constraint that passed on seed data failed because of duplicates and old values in the production data. How long a change that rewrites a table blocks the app also came out in seconds. While a heavy change ran on a branch, the response time of the parent cluster did not change. But anyone who expects the same thing as a Git branch will find two differences. Each branch gets its own connection address, and there is no merge, so a verified migration has to be run again on production.

Until now there were two ways to do this check. One is a staging database that a team shares. Its data differs from production, and when one person changes the schema another person's tests break, so people wait their turn. The other is an Aurora clone. It shows the production data as it is, but a new cluster and instance have to be created, and in this test the first query took more than 8 minutes. That is heavy to create and delete for every single change. Once AI agents start producing several migrations a day, neither way lets the check keep up with the pace of change.

The whole test setup. A test client connects to the cluster endpoint of the parent cluster and to a separate branch endpoint for each branch, and each branch uses its own serverless compute and shares storage with the parent
Figure 1. The whole test setup. From one parent cluster I created a branch for each change and checked it there

What I wanted to know is whether a branch can really take over this check. I first measured whether it is useful for checking that the app runs without problems on a changed schema, and whether it can be used for heavy changes such as building an index or rewriting a table. Then I measured whether a branch can be reached right away without a separate endpoint, as in Git, and whether it keeps up with the pace of the changes that AI produces.

01

One parent cluster and a branch for each change

I ran the test in US East (Ohio), one of the preview Regions. The parent cluster, which plays production, is Aurora PostgreSQL 17.11 on Aurora Serverless v2 with 0.5 to 16 ACUs. An ACU (Aurora Capacity Unit) is the unit of capacity of Aurora Serverless, and the documentation describes 1 ACU as about 2 GiB of memory with the corresponding CPU and networking. I turned the RDS Data API off on the parent cluster and left encryption at rest at its default, an AWS owned key. With other settings, creating a branch was refused.

The data is a database named shop modelled on an order service, 8.1 GiB in size. It holds 2 million customers, 20 million orders and 60 million order items, and I mixed in two defects that are common in production data on purpose. They are 1,000 customers who signed up again with the same email address and 1,998 orders stored with the old spelling CANCELED. The orders table has no index on the customer ID.

The app comes in two versions written in Python. v1 uses the current schema and v2 uses the schema of the next release. v2 reads the customer name column as name, uses the orders.currency column, and does not use the orders.note column. In each version 7 tests run a customer lookup, an order list, an order detail, creating and cancelling an order, and the revenue of a day. One of them checks that the p95 response time of the order list query (the time within which 95% of requests finish) stays under 200 ms.

A branch is created with just a name and the parent cluster. AWS CLI 2.42.1 on my development server had no branch commands, so I installed 2.43.2 to run them.

bash
aws rds create-branch --region us-east-2 \
  --branch-name first-look --source-db-cluster-identifier abl-prod
json
{
    "Branch": {
        "BranchArn": "arn:aws:rds:us-east-2:<account-id>:branch:cluster-<id>/br-<id>",
        "BranchCreateTime": "2026-12-04T02:07:11+00:00",
        "BranchExpiryTime": "2026-12-05T02:07:11+00:00",
        "BranchName": "first-look",
        "Engine": "aurora-postgresql",
        "EngineVersion": "17.11",
        "IAMDatabaseAuthenticationEnabled": true,
        "Port": 5432,
        "ScalingConfiguration": {
            "MaxCapacity": 16.0,
            "SecondsUntilAutoPause": 300
        },
        "SourceArn": "arn:aws:rds:us-east-2:<account-id>:cluster:abl-prod",
        "Status": "creating",
        "TtlSeconds": 86400
    }
}

The response is shown with some fields left out and identifiers masked. The call returned in 1.2 seconds with the status creating. TtlSeconds is the lifetime (TTL) of the branch, and Aurora deletes the branch when it runs out. It is 24 hours when not given and can be set from 1 hour to 90 days. MaxCapacity is the maximum capacity of the branch's compute. Its default is 16 ACUs and it can go up to 64 ACUs. There is no minimum capacity to set, and with no connection a branch goes down to 0 ACUs.

When the status changes to available, the endpoint appears. You connect to that address with the same user and password as for the parent. The endpoint identifier is masked in the output below.

bash
$ aws rds describe-branches --region us-east-2 --db-cluster-identifier abl-prod \
    --branch-name first-look --query 'Branches[0].[Status,Endpoint]' --output text
available	<id>.branch.us-east-2.rds.amazonaws.com

$ psql -h <id>.branch.us-east-2.rds.amazonaws.com -U postgres -d shop \
    -c "select current_database() as db, current_user as usr, pg_is_in_recovery() as read_only, current_setting('server_version') as version"
  db  |   usr    | read_only | version 
------+----------+-----------+---------
 shop | postgres | f         | 17.11
(1 row)

02

A branch in the same cluster with an address of its own

A branch is not something you switch to inside the same connection address, as with a Git branch. Each branch gets an endpoint of the form <id>.branch.us-east-2.rds.amazonaws.com and its own serverless compute, so the app and the migration tool have to point at the branch's address. What it shares with the parent is storage. The documentation describes it as copy-on-write: a branch shares the parent's data pages and stores only the data that changes on the branch. A branch showed up only in describe-branches and not in the lists of describe-db-clusters or describe-db-instances.

The settings needed to connect came down from the parent as they are. The security group and the subnet group are the same, so a client that could reach the parent reached a branch without any new rule. The parent's user password, an IAM database authentication token and a TLS 1.3 connection all worked on the branch endpoint as well. When I changed log_min_duration_statement in the parent's cluster parameter group, the value on the branch changed 5.2 seconds later.

The life of one branch. The time of each stage (create call, first query, automatic pause, reconnect, delete), the capacity of a new branch per minute, and a comparison of times with an Aurora clone measured on the same parent
Figure 2. The life of one branch. The time of each stage, the capacity of a new branch, and a comparison with an Aurora clone

From the create call to the first successful query, the median of 5 runs on the 8.1 GiB parent was 91.5 seconds, with a range of 87.0 to 161.8 seconds. On the empty parent, before the data was loaded, the median of 3 runs was 90.5 seconds, so at this size the amount of data did not drive the time. An Aurora clone of the same parent took 487.8 and 517.9 seconds in two runs. Deleting took 56.7 seconds for a branch and 455.4 and 554.6 seconds for the clone.

A branch sees what was committed at the moment it was created. If you need the parent's latest data, you have to create a new branch. A branch that I created while the parent was filling the orders table in one transaction had 0 rows of orders. After that, changes on either side were not visible to the other. Changing a column type on a branch left the parent's column as it was, and a change applied to the parent later did not appear on a branch created earlier.

A branch that has no connection for 300 seconds goes down to 0 ACUs and pauses. Its status still says available. The first connection to a paused branch took a median of 19.5 seconds over 4 runs. A client with a 5-second connect timeout failed during that time. Below is the output of repeated connections with a 5-second timeout to a paused branch, with only the last capacity line kept.

text
# 2026-12-04T03:51:32Z branch t3-rw4, PGCONNECT_TIMEOUT=5
status: available
-- ServerlessDatabaseCapacity of the last 10 minutes (time, average, maximum)
2026-12-04T03:50:00+00:00	0.0	0.0
attempt 1: rc=2 after 5.0 s, 5.0 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 2: rc=2 after 5.0 s, 10.0 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 3: rc=2 after 5.0 s, 15.1 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 4: rc=2 after 5.0 s, 20.1 s since the first attempt: psql: error: connection to server at "<id>.branch.us-east-2.rds.amazonaws.com" (<ip>), port 5432 failed: timeout expired
attempt 5: rc=0 after 4.0 s, 24.1 s since the first attempt: connected

I ran the same test on 3 branches, and the connection came 21.5 to 25.9 seconds after the first attempt. Tests and CI jobs that connect to a branch have to set their connect timeout and retry count to match this. The documentation says that resuming takes about 15 seconds and recommends a client timeout longer than that, and in this test it took longer.

03

Failures that showed only on a branch of production data

For checking that the app runs on a changed schema, a branch fit as it is. I applied 10 migrations, each to a new branch, and ran the tests of app v1 and v2 on that branch. I did this twice, and the number of passing tests was the same both times.

MigrationResultv1 passedv2 passed
No change62
Add a currency columnSucceeded, 0.2 s and 0.1 s65
Index for the order list (CREATE INDEX CONCURRENTLY)Succeeded, 12.1 s and 12.4 s72
Rename the customer name columnSucceeded, 0.1 s53
Unique constraint on the emailFailed62
Unique constraint after cleaning up duplicate emailsSucceeded, 5.9 s and 5.7 s62
CHECK constraint on the order statusFailed62
CHECK constraint after fixing the old valueSucceeded, 5.8 s and 5.6 s62
Add an order events tableSucceeded, 0.2 s62
Drop the order note columnSucceeded, 0.1 s52
Next release bundle (currency column, rename, drop of the note column, index)Succeeded, 12.2 s and 12.7 s57

Table 1. Result of each migration and the number of tests that passed. Each version has 7 tests, and the times are those of the two runs

The two failures did not appear on seed data. On a seed database with about 100 customers, both constraints were applied and all 7 v1 tests passed. On a branch of the production data, the same files stopped with these errors.

text
ERROR:  could not create unique index "customers_email_key"
DETAIL:  Key (email)=(user47976@example.com) is duplicated.

ERROR:  check constraint "orders_status_chk" of relation "orders" is violated by some row

On the failed branch I queried the rows that caused it right away. Migrations with a statement that cleans up the duplicate emails and a statement that fixes the old value were applied on new branches.

The response time test also meant something only on data of production size. On an unchanged branch only 6 of the v1 tests passed, because the p95 of the order list query was above 300 ms. On seed data the p95 of the same query was 1.2 ms, so it passed. On the branch with the index added, all 7 passed.

A problem with the deployment order also showed up before deployment. On the branch with the release bundle applied, all 7 v2 tests passed, but in v1 the customer lookup and creating an order failed. On the unchanged schema, in turn, only 2 of the v2 tests passed. Whichever of the migration and the app is deployed first, there is a window of failures, so this bundle has to be split and deployed in parts. Adding the currency column did not affect v1, and the rename and the dropped note column are what made v1 fail.

04

Lock time and duration checked ahead on a branch

For a heavy change, a branch told me how long the change takes and how long the app is blocked meanwhile. While the change ran on a branch, I sent the app's reads and writes to the same branch one after the other about every 0.2 seconds and measured the stretch in which responses stopped.

ChangeBranch maximum capacityDurationTime the app calls were blockedDatabase size
Column type change (rewrite of the order items table)4 ACUs232.0 sReads, 231.9 s8.15 GiB, unchanged
Same change16 ACUs148.1 s, 149.2 sReads, 147.8 s, 148.8 s8.15 GiB, unchanged
Same change64 ACUs137.0 sReads, 136.7 s8.15 GiB, unchanged
Index build (CONCURRENTLY)16 ACUs11.6 sNone8.15 to 8.74 GiB
Index build (without CONCURRENTLY)16 ACUs8.0 sWrites, 7.7 s8.15 to 8.74 GiB
New column and a backfill of every row16 ACUs271.2 sNone8.15 to 10.06 GiB

Table 2. Duration of the heavy changes run on a branch and the time the app calls were blocked. The rewrite at 16 ACUs was run twice, the others once

A table rewrite takes an ACCESS EXCLUSIVE lock, so the app's read did not answer until the change ended. The write was sent after the read, so it did not run during that time. The index built with CONCURRENTLY and the backfill did not block the calls, and the read p95 rose from 11 to 14 ms to 72 to 84 ms meanwhile.

More capacity shortened the time only up to a point. Going from 4 to 16 ACUs cut the rewrite by 84 seconds, but 64 ACUs cut only 11 seconds more. To make the rehearsal time match production, the branch has to be created with a maximum capacity that matches the parent's. In the preview, a branch's settings cannot be changed after it is created.

While these changes ran on branches, the parent's read p95 stayed at 2.7 to 3.5 ms, the same as before the changes.

The rehearsal values came out the same on the parent. At the end of the test I ran the same rewrite on the parent, which has a maximum of 16 ACUs. It took 149.9 seconds and the app's read was blocked for 149.6 seconds. A branch that I created while the rewrite was running answered its first query after 98.5 seconds, and its column type was still the one from before the change.

There are things a branch does not show. A branch has no production traffic, so the time a change waits for a lock behind a long transaction and the effect of many concurrent writes did not come out.

05

Branches created at once and the work of AI agents

Even when changes arrive all at once, I could create a branch for each change and check them at the same time. The 10 tasks in Table 1 were started together. Until all 10 finished, the first run took 291.8 seconds and the second 169.8 seconds. The task times add up to 1,328.3 and 1,175.5 seconds, so that is 22% and 14% of running them one after another. Most branches were ready in 91.8 to 111.0 seconds, but each run had one branch that took 281.6 and 154.1 seconds, and that branch set the total time.

Creating several branches at once did affect the parent. During the roughly 100 seconds of creating 10 branches, the parent's read p95 rose from 2.9 ms to about 20 ms and its write p95 from 6.0 ms to about 30 ms. The medians moved by less than 2 ms and there were no errors. Creating a single branch did not change the parent's response time.

I also tested how AI agents use branches. I gave three Claude Code subagents one task each and started them together. Each agent was allowed only the commands that create and delete branches under its own name and that run SQL and the app tests on those branches. I had them prove the finished migration by applying it once, from the start, to a new branch.

Three AI agents working at once. The time spans in which each agent created and used its two branches, the failures run on purpose, the moment of the final proof, what each agent found in the production data on the branch and the migration it ended with, and the time the same files took on the parent
Figure 3. Three AI agents working at once. Each agent used two branches, and I ran the finished files again on the parent

The three agents finished their migrations in 7 minutes 34 seconds to 8 minutes 37 seconds and passed the final proof. Agent A found the duplicate emails and agent B the order status stored with the old spelling in the production data on the branch, and each added a cleanup step to its migration. B and C ran statements they expected to fail on the branch on purpose and confirmed the errors.

The agents' reports also listed limits of branches. For the roughly 90 seconds until the first branch was ready they could not run SQL. A new branch has an empty cache, so the first queries were slow. There is no way to reset a branch to its state at creation, so applying the final migration from the start needed one more branch.

A branch has no merge. The documentation says that once tests pass, the pipeline applies the migration to production with tools such as Liquibase or Flyway. I ran the three files the agents finished on the parent one after another, and the apply times added up to 22.6 seconds. After that, all 7 v1 tests passed on the parent. The change did not appear on branches created earlier.

A change that the tests do not check did not show up on a branch either. When agent B's migration fixed the old spelling, the orders counted in the revenue of one day went down by 9, and the v1 test passed anyway because it does not check the count.

06

Conditions to check first in the preview

Before creating a branch, check the settings of the parent cluster. On the parent cluster I created first, create-branch was refused twice, and I created the cluster again with different settings. The top two rows of Table 3 are conditions that were not in the limitations page.

ConditionResultBasis
Cluster with the RDS Data API enabledRefused with InvalidBranchSourceTested
Cluster encrypted with a customer managed key or the AWS managed key aws/rdsRefused with InvalidBranchSourceTested
Cluster without a writer instanceRefused with InvalidBranchSourceTested
A branch of a branch given as the sourceRefused with InvalidBranchSource. A branch of a branch is the deepest levelTested, docs
TTL1 hour to 90 days. 1,800 seconds is refusedTested, docs
Maximum capacity1 to 64 ACUs. 128 ACUs is refusedTested
Number of branches50 per cluster (10 in the Free Tier), 2,000 per accountDocs
Changing settings after creation, Multi-AZ failover, automated backups, SLANot supported in the previewDocs
RegionsOhio, Frankfurt, Mumbai. The API in the Seoul Region returns InvalidActionAnnouncement, tested

Table 3. Conditions and limits for creating a branch. As of the preview on December 4, 2026

In some places the examples in the documentation and the behaviour of AWS CLI 2.43.2 differed.

  • The examples on the getting started page name a branch with --branch-arn, but the CLI had no such option. I had to give --db-cluster-identifier and --branch-name together.
  • The filter source-db-cluster-identifier of describe-branches was refused as a filter name that isn't valid.
  • Giving --ttl-seconds when creating a branch from a branch returned InvalidParameterCombination. A child branch expires at the same time as its source branch.
  • Branch names are stored in lower case. API-CHECK was treated as the same name as the existing api-check.

There are things to check in monitoring as well. The cluster-level ServerlessDatabaseCapacity included the capacity of the branches. On a cluster with an alarm on this metric, the value changes once branches are created. I read the capacity of each branch through the BranchName dimension, and I did not find a metric that shows how much storage a branch takes.

07

Cost and good use cases

A branch was useful for checking that the app runs on a changed schema and for checking the duration and the locks of a heavy change in advance. Several changes and the work of AI agents were also handled at the same time, with a branch for each change. A branch is not reached right away without a separate endpoint the way a Git branch is, and it needs an endpoint of its own. Each branch gets its own address, takes about 90 seconds to be ready, and a verified change has to be run again on production.

The cost comes from the compute a branch uses. The announcement says that there is no additional charge for branching and that you pay for the serverless compute the branches consume and the data changed within a branch. Table 4 is the per-minute average capacity in CloudWatch times the Ohio Region price of 0.12 USD per ACU-hour.

TaskCompute cost
One branch created and deleted right away0.018 USD
A light migration and the app tests0.021 to 0.024 USD
A migration with an index build and the app tests0.036 USD
Rehearsal of the table rewrite (4, 16, 64 ACUs)0.096, 0.259, 0.614 USD
Rehearsal of the backfill (16 ACUs)0.307 USD
One agent task (2 branches)0.129 to 0.135 USD
This whole test (47 branches, 28.6 ACU-hours)3.43 USD

Table 4. Compute cost of branches by task. Storage and I/O charges are not included, and the values are calculated, not checked against a bill

A new branch went up to its maximum capacity right after creation and stayed at 4.5 ACUs for 5 minutes after the last connection closed. A branch left alone after a few queries cost 0.06 USD until it paused, more than 3 times a branch deleted right away. It costs less to treat the TTL as a way to clean up forgotten branches and to call delete-branch as the last step of a job.

A branch is good for checking changes whose result depends on the production data. Table 5 lists the cases this test confirmed and the conditions for using a branch in each.

Use caseWhat the branch showsConditions
Checking a constraint before adding itWhether a unique or CHECK constraint fails on production data, and the rows that cause itQuery the cause on the failed branch, add a cleanup statement, and apply again on a new branch
Data cleanup and value fix scriptsWhether the cleanup and the fix finish on all of the production data, and how long they takeCompare aggregates that the tests do not check before and after, separately
Rehearsing a heavy changeThe duration of a table rewrite, an index build or a backfill, and how long the app calls are blockedGive the branch the same maximum capacity as production. Lock waits and the effect of load do not show
Checking the deployment order of the app and the migrationWhether the tests of the current and the next app version pass on the new schemaRun both versions on a branch with the release bundle and on an unchanged branch
Query response time before and after an indexThe response time of one query on data of production sizeThe first queries on a new branch are slow because its cache is empty. Not for load tests
Checking several changes at onceOne branch per change, with the migration and the app tests running on all of them at the same timeCreating several branches at once raises the parent's response time for a while. Match connect timeouts and retries to the time a branch needs to be ready
A workspace for AI agentsEach agent explores, confirms failures and proves the final migration on its own branchesThere is no merge, so run the finished file again on production. Agents read production data, so check access first

Table 5. Good use cases for a branch. What this test confirmed and the conditions for using it

There are uses it does not fit. A branch does not fit load tests or benchmarks. The documentation says the same, because a branch's compute can differ from production. With a lifetime of at most 90 days and no automated backups, an Aurora clone fits a long-lived test environment.

A branch holds the production data as it is and is reached with the parent's users and passwords. Opening a branch to developers and agents lets them read production data. The documentation says that IAM policies and dynamic data masking policies set on the parent are inherited by a branch, and I did not check the inheritance of masking policies in this test.

First check whether the Data API and encryption key settings of your production cluster meet the conditions for a branch. If they do, run your next migration on a branch before applying it to production and check whether it fails and how long it takes.

참고 자료References

No.출처Source종류Kind확인한 날Checked
1Announcing database branching for Amazon Aurora PostgreSQL (Preview)What's NewWhat's New2026-12-04
2Using database branches공식 문서AWS docs2026-12-04
3How database branches work공식 문서AWS docs2026-12-04
4Getting started with database branches공식 문서AWS docs2026-12-04
5Controlling access to database branches with IAM공식 문서AWS docs2026-12-04
6Choosing between Aurora clones, Blue/Green Deployments, and database branches공식 문서AWS docs2026-12-04
7Branch capabilities, limitations, and quotas공식 문서AWS docs2026-12-04
8How Aurora serverless works공식 문서AWS docs2026-12-04
9Scaling to Zero ACUs with automatic pause and resume for Aurora serverless공식 문서AWS docs2026-12-04
10Cloning a volume for an Amazon Aurora DB cluster공식 문서AWS docs2026-12-04
11Amazon Aurora pricing요금Pricing2026-12-04