DynamoDB Global Tables Operator
What this skill does
Executes DynamoDB Global Tables operations correctly and safely across
the full lifecycle: creating replicated tables, adding/removing replica
regions, monitoring replication latency, executing application-level
regional failover, and managing per-region PITR. Runs deterministic
pre-checks before any state-changing CLI, executes behind a CONFIRM
gate, and verifies the result.
Quick navigation
| Section |
What it covers |
When to read it |
| Quick reference |
Verdict thresholds (BLOCKED/READY/COMPLETED) + pre-check priority order |
Before any operation |
| STRICT output contract |
Mandatory output block format |
Before emitting any response |
| Mindset |
Global Tables v2 model, LWW conflict resolution, the failover asymmetry |
Understanding the replication model |
| Expert heuristic |
Non-obvious global table behaviours from operational experience |
Review before complex operations |
| Process |
Per-operation planning: create, add-replica, remove-replica, failover, PITR |
When choosing which operation to run |
| NEVER |
Top 5 anti-patterns that cause data loss or replication gaps |
Review before risky operations |
| Recent AWS features |
2024-2026 Global Tables updates |
Reference for latest capabilities |
Quick reference — verdict thresholds
| Verdict |
Trigger condition |
Action |
BLOCKED |
One or more pre-checks failed (table not ACTIVE in all regions, schema mismatch, PITR inconsistent, replica CREATING/DELETING, IAM permission missing, table in UPDATING) |
List failures, do NOT execute |
READY |
All pre-checks passed; awaiting CONFIRM gate |
Emit exact CLI sequence, wait for operator yes |
COMPLETED |
Operation finished and post-verification passed (all replicas ACTIVE, ReplicationLatency within threshold, PITR enabled per region) |
Emit replica status, verification results, notes |
Priority order for pre-checks (apply in this sequence, all must pass
for READY):
- Table status — must be
ACTIVE in ALL regions. CREATING,
UPDATING, DELETING in any region → BLOCKED.
- Schema consistency — all replicas must share identical key
schema, attribute definitions, billing mode, and table class.
- Replication status — for add/remove, no replica in
CREATING
or DELETING state. Check describe-global-table.
- PITR consistency — for failover and DR operations, PITR should
be enabled on all replicas. For per-region PITR enablement, verify
the target region's current PITR status.
- IAM permissions — caller needs
dynamodb:CreateGlobalTable,
dynamodb:UpdateGlobalTable, dynamodb:DescribeGlobalTable on the
table ARN in the primary region. Cross-region operations need
permissions in each region.
- Conflict resolution awareness — Global Tables v2 uses
LAST_WRITER_WINS exclusively. Concurrent writes to different
regions may conflict. Verify the application tolerates LWW.
Cost/latency baselines (2026):
- Cross-region replication latency: typically under 1 second for most
region pairs (depends on geographic distance).
- Replica creation time: minutes to hours depending on table size
(data is copied from an existing replica to the new region).
- Global Tables replicated write cost: 2x+ the single-region WCU cost
(one WCU per replica region per write).
- PITR cost per region: ~$0.20/GB-month for continuous-backup storage,
charged independently per replica region.
STRICT output contract
Every operation response MUST emit this block. No prose before the
block; the block is the entire actionable output.
OPERATION: <create-global-table | add-replica | remove-replica | failover | enable-pitr | verify-replication>
VERDICT: READY | BLOCKED | COMPLETED
TARGET: <table name, primary region, replica regions>
PRE_CHECKS:
- [PASS] <check description>
- [FAIL] <check description> — <reason>
STEPS:
1. <CLI command with flags populated>
2. <wait/poll command>
3. <next step>
POST_VERIFY:
- [PASS] <verification description>
- [FAIL] <verification description> — <reason>
REPLICA_STATUS:
- <region>: <ACTIVE | CREATING | DELETING | UPDATING>
NOTES: <application cutover steps, cost implications, cleanup, caveats>
CONFIRM: Before executing any state-changing CLI, emit and await operator
approval: "CONFIRM: About to <operation> on <table> in <regions>.
Proceed? (yes/no)"
Do NOT omit any field. If a field is not applicable, write N/A with a
one-line reason.
Mindset
One-line takeaway: DynamoDB Global Tables v2 provides active-active
multi-region replication with LAST_WRITER_WINS conflict resolution.
There is no automatic failover — failover is application-level (point
the client to a different region). Every replica is independently
queryable and writable. Per-region PITR is independent.
Driven by four Global Tables realities:
Global Tables v2 is the standard (2019+). The original Global
Tables (v1, via aws dynamodb_streams) is deprecated. All new global
tables use the v2 model: create-global-table with replication
group members, managed internally by DynamoDB. Operators who follow
v1 documentation will use the wrong APIs.
Conflict resolution is LAST_WRITER_WINS, always. When the same
item is written concurrently in two regions, the write with the
later timestamp wins. There is no conflict detection or resolution
callback. The application must be designed for LWW: either avoid
concurrent writes to the same item from different regions, use
region-specific partition keys, or accept that the last writer wins.
This is the single most important design constraint.
Failover is application-level, not service-level. DynamoDB does
not automatically route traffic to a healthy region during a
regional outage. The application (or SDK with RegionSwitchingRetryPolicy)
must detect the failure and redirect writes/reads to another region.
The writer endpoint does NOT follow a primary — every region is a
primary. Plan the failover mechanism before you need it.
Each replica region is independently configured for PITR, billing
mode, autoscaling, and backups. Enabling PITR on one replica does
NOT enable it on others. Autoscaling policies must be registered per
replica region. IAM resource policies must include all regional
ARNs. This is the most common gap in global table operations.
Expert heuristic — non-obvious global table behaviours
All ten non-obvious behaviours (replica bootstrapping, irreversible removal, per-region GSI/billing changes, dual describe views, per-pair ReplicationLatency, LWW thrashing, PITR restore creating a single-region table, per-replica autoscaling, linear WCU scaling) moved verbatim to references/advanced-patterns.md.
Load on demand when reviewing complex operations.
Pre-flight: global table metadata gate
Run before any operation. Misclassifying these produces wrong plans.
Live-account pre-flight CLI (describe-global-table, per-region describe-table, describe-continuous-backups, ReplicationLatency and autoscaling metrics, in-progress update check) moved verbatim to references/diagnostic-commands.md.
Load on demand before any live-account operation.
| Table attribute |
Effect on operation |
TableStatus: ACTIVE (all replicas) |
Pre-check passes for all operations |
TableStatus: CREATING (new replica) |
BLOCKED for add/remove — wait for ACTIVE |
TableStatus: UPDATING (any replica) |
BLOCKED — wait for ACTIVE |
ReplicaStatus: ACTIVE (all replicas) |
Replication healthy; operations allowed |
ReplicaStatus: CREATING (new replica) |
BLOCKED for further replica changes |
ReplicaStatus: DELETING (removed replica) |
BLOCKED — wait for deletion to complete |
BillingMode mismatch across replicas |
BLOCKED — billing mode must be consistent |
PITRStatus: ENABLED (region) |
PITR available for that region's restore window |
PITRStatus: DISABLED (region) |
No continuous backup for that region |
| Key schema mismatch across replicas |
BLOCKED — all replicas must have identical schema |
Process — operation planning (apply in order)
Step 0: Expert knowledge — non-obvious Global Tables behaviors
All eight Step 0 expert behaviors (empty-table prerequisite for create-global-table, update-global-table auto-creating replicas, name matching, LWW-only conflict resolution, async replication, per-region PITR, last-replica removal, describe-global-table-settings) moved verbatim to references/advanced-patterns.md.
Load on demand when planning any operation.
Step 1: Pre-check gate — BLOCKED if any check fails
For ALL operations:
- All existing replicas are
ACTIVE (describe-global-table).
- No replica is in
CREATING or DELETING state.
- The caller holds the required DynamoDB permissions.
For create-global-table:
4. Identical empty tables exist in all target regions with the same key
schema, attribute definitions, and billing mode.
5. describe-global-table returns GlobalTableNotFoundException (the
global table does not already exist).
6. PITR is either enabled or disabled consistently across all regions
(recommend enabled).
For add-replica:
4. The target region does NOT already have a replica.
5. The global table exists with at least one ACTIVE replica.
6. The caller has dynamodb:UpdateGlobalTable and
dynamodb:CreateTable in the target region.
For remove-replica:
4. The target region has an ACTIVE replica.
5. At least one replica will remain after removal (do not remove the
last replica unless intentionally converting to single-region).
6. No application traffic is routing to the region being removed
(verify via CloudWatch ConsumedReadCapacityUnits and
ConsumedWriteCapacityUnits for that region).
For failover:
4. The target region has an ACTIVE replica.
5. ReplicationLatency to the target region is within acceptable
bounds (< 1 second typical).
6. The application has a failover mechanism (SDK retry policy, Route 53
health check, or manual DNS switch).
For enable-pitr:
4. The target region's table is ACTIVE.
5. describe-continuous-backups shows
PointInTimeRecoveryStatus: DISABLED (or verify ENABLED if checking).
Step 2: READY — emit operation plan
If all pre-checks pass, emit VERDICT: READY with the exact CLI
sequence and the CONFIRM gate. The plan includes:
- The exact AWS CLI command with all flags populated.
- The expected duration (replica creation: minutes to hours; replica
removal: minutes; PITR enablement: seconds).
- The expected side-effects (new replica region for add-replica, table
deleted in removed region for remove-replica).
- The CONFIRM gate prompt.
Step 3: Execute behind CONFIRM gate
- MANDATORY CONFIRMATION GATE. Before any state-changing CLI, emit
the CONFIRM prompt and wait for operator approval.
- Capture pre-state for audit.
- Execute the CLI. Capture the response.
- For long-running operations (add-replica), poll the replica status
via
describe-global-table until ReplicaStatus: ACTIVE.
Step 4: Post-verification — COMPLETED
After the operation finishes, run post-verification. ALL checks must
pass for COMPLETED.
describe-global-table — all replicas show ReplicaStatus: ACTIVE.
describe-table per region — TableStatus: ACTIVE in all regions.
- CloudWatch
ReplicationLatency — within threshold (< 1s average).
- For add-replica: verify data is replicating by writing a test item
in one region and reading it in the new replica.
- For remove-replica: verify the table is deleted in the removed
region (
describe-table returns ResourceNotFoundException).
- For enable-pitr: verify
PointInTimeRecoveryStatus: ENABLED via
describe-continuous-backups.
- For failover: verify the application is successfully reading and
writing in the new primary region.
Output format (per operation)
See STRICT output contract above. Worked examples below.
Worked example — add replica region (READY)
OPERATION: add-replica
VERDICT: READY
TARGET: orders-prod global table, adding replica in eu-west-1
Current replicas: us-east-1, us-west-2
Target replicas: us-east-1, us-west-2, eu-west-1
PRE_CHECKS:
- [PASS] Global table orders-prod exists
- [PASS] All current replicas ACTIVE (us-east-1: ACTIVE, us-west-2: ACTIVE)
- [PASS] No replica in CREATING or DELETING state
- [PASS] Target region eu-west-1 does not have an existing replica
- [PASS] Caller IAM role has dynamodb:UpdateGlobalTable
- [PASS] Caller IAM role has dynamodb:CreateTable in eu-west-1
- [WARN] PITR is ENABLED in us-east-1 and us-west-2 — enable in
eu-west-1 after replica creation
STEPS:
1. CONFIRM: About to add replica region eu-west-1 to global table
orders-prod. This will create a new table in eu-west-1 and copy
data from an existing replica. Estimated time: 15-30 minutes for
~50 GB. Proceed? (yes/no)
2. aws dynamodb update-global-table \
--global-table-name orders-prod \
--replica-updates '[{"Create":{"RegionName":"eu-west-1"}}]'
3. Poll: aws dynamodb describe-global-table \
--global-table-name orders-prod \
--query 'GlobalTableDescription.ReplicationGroup[?RegionName==`eu-west-1`].ReplicaStatus'
Wait for ACTIVE.
4. Enable PITR in eu-west-1:
aws dynamodb update-continuous-backups \
--table-name orders-prod --region eu-west-1 \
--point-in-time-recovery-specification PointInTimeRecoveryEnabled=true
5. Register autoscaling in eu-west-1 (if PROVISIONED mode):
aws application-autoscaling register-scalable-target \
--service-namespace dynamodb \
--resource-id table/orders-prod \
--scalable-dimension dynamodb:table:WriteCapacityUnits \
--min-capacity <min> --max-capacity <max> --region eu-west-1
POST_VERIFY:
- (pending execution)
REPLICA_STATUS:
- us-east-1: ACTIVE
- us-west-2: ACTIVE
- eu-west-1: CREATING (will transition to ACTIVE)
NOTES:
- The new replica is read-only during CREATING. Writes will replicate
to it automatically once ACTIVE.
- PITR is NOT automatically enabled in eu-west-1 — step 4 is required.
- Autoscaling policies are NOT automatically created in eu-west-1 —
step 5 is required (PROVISIONED mode only).
- Replicated write cost increases: each write now consumes 3x WCU
(3 replicas) instead of 2x.
- ReplicationLatency for eu-west-1 may be higher than us-west-2
(geographic distance from us-east-1).
Worked example — remove replica blocked by active traffic
Remove-replica BLOCKED worked example (active-traffic pre-check failure, redirect-first notes) moved verbatim to references/worked-examples.md.
Load on demand when planning a remove-replica operation.
Worked example — regional failover (COMPLETED)
Regional failover COMPLETED worked example (SDK RegionSwitchingRetryPolicy cutover, LWW conflict notes, do-not-remove-degraded-replica) moved verbatim to references/worked-examples.md.
Load on demand when planning a failover or DR drill.
Diagnostic command reference
All eight diagnostic commands (global table status, settings, regional status, PITR, ReplicationLatency, consumed capacity, list-global-tables, autoscaling) moved verbatim to references/diagnostic-commands.md.
Load on demand when diagnosing replication or replica state.
Anti-Patterns — NEVER (top 5)
NEVER remove a replica region without verifying it has no active
application traffic. Removing a replica deletes the table and all
data in that region. If the application is still routing traffic
there, it will fail immediately. Always check CloudWatch
ConsumedReadCapacityUnits and ConsumedWriteCapacityUnits for the
region before removal — they must be near-zero.
NEVER assume DynamoDB Global Tables has automatic failover.
DynamoDB does NOT redirect traffic during a regional outage. Failover
is 100% application-level. The application (SDK retry policy, Route 53
health check, or manual switch) must detect the failure and redirect
to another region. Without a failover mechanism, the application will
fail until the region recovers.
NEVER assume PITR, autoscaling, or IAM policies are replicated
across regions. Each replica region is independently configured.
Enabling PITR in us-east-1 does NOT enable it in eu-west-1. Always
configure PITR, autoscaling, and IAM per-region after adding a replica.
NEVER write concurrently to the same item from multiple regions
without LWW-aware design. Global Tables v2 uses LAST_WRITER_WINS
exclusively. Concurrent writes to the same partition key from
different regions will overwrite each other in a non-deterministic
order (based on timestamp). Use region-specific keys, or
DynamoDB Streams for merge, or accept LWW semantics.
NEVER assume schema changes propagate automatically. Adding a
GSI to one replica does NOT create it on other replicas. Billing
mode changes, table class changes, and TTL configuration must each
be applied region by region. Always plan schema changes as a
per-region operation.
Remediation guidance
Per-operation remediation sequences (create-global-table, add-replica, remove-replica, failover, enable-pitr) moved verbatim to references/global-tables-procedures.md.
Load on demand when executing any operation end-to-end.
Recent AWS features (2024-2026)
Recent AWS features 2024-2026 (v2-only APIs, per-region PITR, ReplicationLatency metrics, cost attribution, strong-consistency preview, DeleteProtectionEnabled) moved verbatim to references/advanced-patterns.md.
Load on demand when deciding between v2 capabilities.
References
See references/global-tables-procedures.md for the full operation
procedures (create, add-replica, remove-replica, failover, PITR), and
references/multi-region-dr-guide.md for the disaster recovery
planning guide including failover runbooks and RTO/RPO analysis.
References (load on demand)
references/advanced-patterns.md — expert heuristics, Step 0 expert behaviors, and recent AWS features (2024-2026) moved from SKILL.md
references/diagnostic-commands.md — pre-flight and diagnostic command listings moved from SKILL.md
references/worked-examples.md — the remove-replica (BLOCKED) and regional failover (COMPLETED) worked examples moved from SKILL.md; the add-replica (READY) example stays inline
references/global-tables-procedures.md — per-operation remediation sequences moved from SKILL.md, plus the pre-existing full operation procedures
Domain
AWS CloudOps / DynamoDB Global Tables Multi-Region Replication and
Disaster Recovery.
AWS documentation
1---2name: dynamodb-global-tables-operator3description: 'Operates DynamoDB Global Tables safely across the full lifecycle: creating replicated tables in multiple regions, managing replication configuration, adding and removing replica regions, monitoring ReplicationLatency and ReplicaLag, executing application-level regional failover, and managing per-region PITR. Runs deterministic pre-checks (table ACTIVE in all regions, same key schema, PITR consistent, IAM permissions, no in-progress updates) before any state-changing CLI, executes the operation behind a CONFIRM gate, and verifies the result. Covers Global Tables v2 (standard, single-writer), LAST_WRITER_WINS conflict resolution, and per-region PITR enablement. Emits a verdict (READY | BLOCKED | COMPLETED) per operation with the exact CLI sequence, expected side-effects, and verification commands. Use when creating a global table, adding or removing replica regions, monitoring cross-region replication latency, failing over to another region, or managing per-region continuous backups.'4license: Apache-2.05compatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws dynamodb create-global-table, update-global-table, describe-global-table, describe-global-table-settings, describe-table, update-table, describe-continuous-backups, aws cloudwatch get-metric-statistics for AWS/DynamoDB metrics, and aws application-autoscaling describe-scaling-policies (AWS CLI v2, SSO or key-based credentials).6metadata:7 source: https://skillmd.com/skills/jhkchan/dynamodb-global-tables-operator8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '3'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Databases15 task_type: operate16 skill_class: capability17 lifecycle_status: active18 verdict_shape: READY | BLOCKED | COMPLETED19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 tags: dynamodb, databases, global-tables, multi-region, replication, operate, failover22 dependencies: aws-orchestrator23 keywords: DynamoDB, Global Tables, Global Tables v2, multi-region, replication, replica, ReplicationLatency, ReplicaLag, conflict resolution, LAST_WRITER_WINS, LWW, regional failover, application-level failover, add replica, remove replica, PITR, per-region PITR, continuous backups, cross-region, disaster recovery24 when_to_use: Creating a DynamoDB Global Table replicated across multiple regions, adding a new replica region to an existing global table, removing a replica region, monitoring cross-region replication latency, failing over application traffic to a different region, enabling or verifying per-region PITR on a global table, or planning a multi-region disaster recovery drill.25 when_not_to_use: DynamoDB table configuration posture audits (use dynamodb-table- auditor), single-region backup/restore operations (use dynamodb- backup-operator), IAM policy authoring for fine-grained access control, or DynamoDB throttling diagnosis (use dynamodb-throttling- troubleshooter). This skill operates global table replication; it does not audit table posture or diagnose throttling.26 activation_triggers: create DynamoDB Global Table, add replica region DynamoDB, remove replica region DynamoDB, DynamoDB multi-region replication, DynamoDB Global Tables failover, DynamoDB replication latency, DynamoDB ReplicationLatency high, DynamoDB Global Tables v2, DynamoDB LAST_WRITER_WINS, enable PITR global table, DynamoDB cross-region replication, DynamoDB disaster recovery multi-region, operate DynamoDB Global Tables27 invocation_schema: 'Input: either (a) a DynamoDB table configuration with the intended operation (create-global-table, add-replica, remove-replica, failover, enable-pitr, verify-replication), OR (b) a table-name + operation for live-account execution. Output: deterministic OPERATION/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block per operation, where VERDICT is one of READY, BLOCKED, COMPLETED.'28---2930# DynamoDB Global Tables Operator3132## What this skill does3334Executes DynamoDB Global Tables operations correctly and safely across35the full lifecycle: creating replicated tables, adding/removing replica36regions, monitoring replication latency, executing application-level37regional failover, and managing per-region PITR. Runs deterministic38pre-checks before any state-changing CLI, executes behind a CONFIRM39gate, and verifies the result.4041## Quick navigation4243| Section | What it covers | When to read it |44|---|---|---|45| **Quick reference** | Verdict thresholds (BLOCKED/READY/COMPLETED) + pre-check priority order | Before any operation |46| **STRICT output contract** | Mandatory output block format | Before emitting any response |47| **Mindset** | Global Tables v2 model, LWW conflict resolution, the failover asymmetry | Understanding the replication model |48| **Expert heuristic** | Non-obvious global table behaviours from operational experience | Review before complex operations |49| **Process** | Per-operation planning: create, add-replica, remove-replica, failover, PITR | When choosing which operation to run |50| **NEVER** | Top 5 anti-patterns that cause data loss or replication gaps | Review before risky operations |51| **Recent AWS features** | 2024-2026 Global Tables updates | Reference for latest capabilities |5253## Quick reference — verdict thresholds5455| Verdict | Trigger condition | Action |56|---|---|---|57| `BLOCKED` | One or more pre-checks failed (table not ACTIVE in all regions, schema mismatch, PITR inconsistent, replica CREATING/DELETING, IAM permission missing, table in UPDATING) | List failures, do NOT execute |58| `READY` | All pre-checks passed; awaiting CONFIRM gate | Emit exact CLI sequence, wait for operator yes |59| `COMPLETED` | Operation finished and post-verification passed (all replicas ACTIVE, ReplicationLatency within threshold, PITR enabled per region) | Emit replica status, verification results, notes |6061**Priority order for pre-checks (apply in this sequence, all must pass62for READY):**63641. **Table status** — must be `ACTIVE` in ALL regions. `CREATING`,65 `UPDATING`, `DELETING` in any region → BLOCKED.662. **Schema consistency** — all replicas must share identical key67 schema, attribute definitions, billing mode, and table class.683. **Replication status** — for add/remove, no replica in `CREATING`69 or `DELETING` state. Check `describe-global-table`.704. **PITR consistency** — for failover and DR operations, PITR should71 be enabled on all replicas. For per-region PITR enablement, verify72 the target region's current PITR status.735. **IAM permissions** — caller needs `dynamodb:CreateGlobalTable`,74 `dynamodb:UpdateGlobalTable`, `dynamodb:DescribeGlobalTable` on the75 table ARN in the primary region. Cross-region operations need76 permissions in each region.776. **Conflict resolution awareness** — Global Tables v2 uses78 `LAST_WRITER_WINS` exclusively. Concurrent writes to different79 regions may conflict. Verify the application tolerates LWW.8081**Cost/latency baselines (2026):**8283- Cross-region replication latency: typically under 1 second for most84 region pairs (depends on geographic distance).85- Replica creation time: minutes to hours depending on table size86 (data is copied from an existing replica to the new region).87- Global Tables replicated write cost: 2x+ the single-region WCU cost88 (one WCU per replica region per write).89- PITR cost per region: ~$0.20/GB-month for continuous-backup storage,90 charged independently per replica region.9192## STRICT output contract9394Every operation response MUST emit this block. No prose before the95block; the block is the entire actionable output.9697```text98OPERATION: <create-global-table | add-replica | remove-replica | failover | enable-pitr | verify-replication>99VERDICT: READY | BLOCKED | COMPLETED100TARGET: <table name, primary region, replica regions>101PRE_CHECKS:102 - [PASS] <check description>103 - [FAIL] <check description> — <reason>104STEPS:105 1. <CLI command with flags populated>106 2. <wait/poll command>107 3. <next step>108POST_VERIFY:109 - [PASS] <verification description>110 - [FAIL] <verification description> — <reason>111REPLICA_STATUS:112 - <region>: <ACTIVE | CREATING | DELETING | UPDATING>113NOTES: <application cutover steps, cost implications, cleanup, caveats>114CONFIRM: Before executing any state-changing CLI, emit and await operator115 approval: "CONFIRM: About to <operation> on <table> in <regions>.116 Proceed? (yes/no)"117```118119Do NOT omit any field. If a field is not applicable, write `N/A` with a120one-line reason.121122## Mindset123124**One-line takeaway:** DynamoDB Global Tables v2 provides active-active125multi-region replication with `LAST_WRITER_WINS` conflict resolution.126There is no automatic failover — failover is application-level (point127the client to a different region). Every replica is independently128queryable and writable. Per-region PITR is independent.129130Driven by four Global Tables realities:131132- **Global Tables v2 is the standard (2019+).** The original Global133 Tables (v1, via `aws dynamodb_streams`) is deprecated. All new global134 tables use the v2 model: `create-global-table` with replication135 group members, managed internally by DynamoDB. Operators who follow136 v1 documentation will use the wrong APIs.137138- **Conflict resolution is LAST_WRITER_WINS, always.** When the same139 item is written concurrently in two regions, the write with the140 later timestamp wins. There is no conflict detection or resolution141 callback. The application must be designed for LWW: either avoid142 concurrent writes to the same item from different regions, use143 region-specific partition keys, or accept that the last writer wins.144 This is the single most important design constraint.145146- **Failover is application-level, not service-level.** DynamoDB does147 not automatically route traffic to a healthy region during a148 regional outage. The application (or SDK with `RegionSwitchingRetryPolicy`)149 must detect the failure and redirect writes/reads to another region.150 The writer endpoint does NOT follow a primary — every region is a151 primary. Plan the failover mechanism before you need it.152153- **Each replica region is independently configured for PITR, billing154 mode, autoscaling, and backups.** Enabling PITR on one replica does155 NOT enable it on others. Autoscaling policies must be registered per156 replica region. IAM resource policies must include all regional157 ARNs. This is the most common gap in global table operations.158159## Expert heuristic — non-obvious global table behaviours160161All ten non-obvious behaviours (replica bootstrapping, irreversible removal, per-region GSI/billing changes, dual describe views, per-pair ReplicationLatency, LWW thrashing, PITR restore creating a single-region table, per-replica autoscaling, linear WCU scaling) moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).162Load on demand when reviewing complex operations.163164## Pre-flight: global table metadata gate165166Run before any operation. Misclassifying these produces wrong plans.167168Live-account pre-flight CLI (describe-global-table, per-region describe-table, describe-continuous-backups, ReplicationLatency and autoscaling metrics, in-progress update check) moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).169Load on demand before any live-account operation.170171| Table attribute | Effect on operation |172|---|---|173| `TableStatus: ACTIVE` (all replicas) | Pre-check passes for all operations |174| `TableStatus: CREATING` (new replica) | BLOCKED for add/remove — wait for ACTIVE |175| `TableStatus: UPDATING` (any replica) | BLOCKED — wait for ACTIVE |176| `ReplicaStatus: ACTIVE` (all replicas) | Replication healthy; operations allowed |177| `ReplicaStatus: CREATING` (new replica) | BLOCKED for further replica changes |178| `ReplicaStatus: DELETING` (removed replica) | BLOCKED — wait for deletion to complete |179| `BillingMode` mismatch across replicas | BLOCKED — billing mode must be consistent |180| `PITRStatus: ENABLED` (region) | PITR available for that region's restore window |181| `PITRStatus: DISABLED` (region) | No continuous backup for that region |182| Key schema mismatch across replicas | BLOCKED — all replicas must have identical schema |183184## Process — operation planning (apply in order)185186### Step 0: Expert knowledge — non-obvious Global Tables behaviors187188All eight Step 0 expert behaviors (empty-table prerequisite for create-global-table, update-global-table auto-creating replicas, name matching, LWW-only conflict resolution, async replication, per-region PITR, last-replica removal, describe-global-table-settings) moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).189Load on demand when planning any operation.190191### Step 1: Pre-check gate — BLOCKED if any check fails192193**For ALL operations:**1941. All existing replicas are `ACTIVE` (`describe-global-table`).1952. No replica is in `CREATING` or `DELETING` state.1963. The caller holds the required DynamoDB permissions.197198**For create-global-table:**1994. Identical empty tables exist in all target regions with the same key200 schema, attribute definitions, and billing mode.2015. `describe-global-table` returns `GlobalTableNotFoundException` (the202 global table does not already exist).2036. PITR is either enabled or disabled consistently across all regions204 (recommend enabled).205206**For add-replica:**2074. The target region does NOT already have a replica.2085. The global table exists with at least one ACTIVE replica.2096. The caller has `dynamodb:UpdateGlobalTable` and210 `dynamodb:CreateTable` in the target region.211212**For remove-replica:**2134. The target region has an ACTIVE replica.2145. At least one replica will remain after removal (do not remove the215 last replica unless intentionally converting to single-region).2166. No application traffic is routing to the region being removed217 (verify via CloudWatch `ConsumedReadCapacityUnits` and218 `ConsumedWriteCapacityUnits` for that region).219220**For failover:**2214. The target region has an ACTIVE replica.2225. `ReplicationLatency` to the target region is within acceptable223 bounds (< 1 second typical).2246. The application has a failover mechanism (SDK retry policy, Route 53225 health check, or manual DNS switch).226227**For enable-pitr:**2284. The target region's table is ACTIVE.2295. `describe-continuous-backups` shows230 `PointInTimeRecoveryStatus: DISABLED` (or verify ENABLED if checking).231232### Step 2: READY — emit operation plan233234If all pre-checks pass, emit `VERDICT: READY` with the exact CLI235sequence and the CONFIRM gate. The plan includes:236237- The exact AWS CLI command with all flags populated.238- The expected duration (replica creation: minutes to hours; replica239 removal: minutes; PITR enablement: seconds).240- The expected side-effects (new replica region for add-replica, table241 deleted in removed region for remove-replica).242- The CONFIRM gate prompt.243244### Step 3: Execute behind CONFIRM gate245246- **MANDATORY CONFIRMATION GATE.** Before any state-changing CLI, emit247 the CONFIRM prompt and wait for operator approval.248- Capture pre-state for audit.249- Execute the CLI. Capture the response.250- For long-running operations (add-replica), poll the replica status251 via `describe-global-table` until `ReplicaStatus: ACTIVE`.252253### Step 4: Post-verification — COMPLETED254255After the operation finishes, run post-verification. ALL checks must256pass for `COMPLETED`.2572581. `describe-global-table` — all replicas show `ReplicaStatus: ACTIVE`.2592. `describe-table` per region — `TableStatus: ACTIVE` in all regions.2603. CloudWatch `ReplicationLatency` — within threshold (< 1s average).2614. For add-replica: verify data is replicating by writing a test item262 in one region and reading it in the new replica.2635. For remove-replica: verify the table is deleted in the removed264 region (`describe-table` returns `ResourceNotFoundException`).2656. For enable-pitr: verify `PointInTimeRecoveryStatus: ENABLED` via266 `describe-continuous-backups`.2677. For failover: verify the application is successfully reading and268 writing in the new primary region.269270## Output format (per operation)271272See STRICT output contract above. Worked examples below.273274### Worked example — add replica region (READY)275276```text277OPERATION: add-replica278VERDICT: READY279TARGET: orders-prod global table, adding replica in eu-west-1280 Current replicas: us-east-1, us-west-2281 Target replicas: us-east-1, us-west-2, eu-west-1282PRE_CHECKS:283 - [PASS] Global table orders-prod exists284 - [PASS] All current replicas ACTIVE (us-east-1: ACTIVE, us-west-2: ACTIVE)285 - [PASS] No replica in CREATING or DELETING state286 - [PASS] Target region eu-west-1 does not have an existing replica287 - [PASS] Caller IAM role has dynamodb:UpdateGlobalTable288 - [PASS] Caller IAM role has dynamodb:CreateTable in eu-west-1289 - [WARN] PITR is ENABLED in us-east-1 and us-west-2 — enable in290 eu-west-1 after replica creation291STEPS:292 1. CONFIRM: About to add replica region eu-west-1 to global table293 orders-prod. This will create a new table in eu-west-1 and copy294 data from an existing replica. Estimated time: 15-30 minutes for295 ~50 GB. Proceed? (yes/no)296 2. aws dynamodb update-global-table \297 --global-table-name orders-prod \298 --replica-updates '[{"Create":{"RegionName":"eu-west-1"}}]'299 3. Poll: aws dynamodb describe-global-table \300 --global-table-name orders-prod \301 --query 'GlobalTableDescription.ReplicationGroup[?RegionName==`eu-west-1`].ReplicaStatus'302 Wait for ACTIVE.303 4. Enable PITR in eu-west-1:304 aws dynamodb update-continuous-backups \305 --table-name orders-prod --region eu-west-1 \306 --point-in-time-recovery-specification PointInTimeRecoveryEnabled=true307 5. Register autoscaling in eu-west-1 (if PROVISIONED mode):308 aws application-autoscaling register-scalable-target \309 --service-namespace dynamodb \310 --resource-id table/orders-prod \311 --scalable-dimension dynamodb:table:WriteCapacityUnits \312 --min-capacity <min> --max-capacity <max> --region eu-west-1313POST_VERIFY:314 - (pending execution)315REPLICA_STATUS:316 - us-east-1: ACTIVE317 - us-west-2: ACTIVE318 - eu-west-1: CREATING (will transition to ACTIVE)319NOTES:320 - The new replica is read-only during CREATING. Writes will replicate321 to it automatically once ACTIVE.322 - PITR is NOT automatically enabled in eu-west-1 — step 4 is required.323 - Autoscaling policies are NOT automatically created in eu-west-1 —324 step 5 is required (PROVISIONED mode only).325 - Replicated write cost increases: each write now consumes 3x WCU326 (3 replicas) instead of 2x.327 - ReplicationLatency for eu-west-1 may be higher than us-west-2328 (geographic distance from us-east-1).329```330331### Worked example — remove replica blocked by active traffic332333Remove-replica BLOCKED worked example (active-traffic pre-check failure, redirect-first notes) moved verbatim to [references/worked-examples.md](references/worked-examples.md).334Load on demand when planning a remove-replica operation.335336### Worked example — regional failover (COMPLETED)337338Regional failover COMPLETED worked example (SDK RegionSwitchingRetryPolicy cutover, LWW conflict notes, do-not-remove-degraded-replica) moved verbatim to [references/worked-examples.md](references/worked-examples.md).339Load on demand when planning a failover or DR drill.340341## Diagnostic command reference342343All eight diagnostic commands (global table status, settings, regional status, PITR, ReplicationLatency, consumed capacity, list-global-tables, autoscaling) moved verbatim to [references/diagnostic-commands.md](references/diagnostic-commands.md).344Load on demand when diagnosing replication or replica state.345346## Anti-Patterns — NEVER (top 5)347348- **NEVER remove a replica region without verifying it has no active349 application traffic.** Removing a replica deletes the table and all350 data in that region. If the application is still routing traffic351 there, it will fail immediately. Always check CloudWatch352 `ConsumedReadCapacityUnits` and `ConsumedWriteCapacityUnits` for the353 region before removal — they must be near-zero.354355- **NEVER assume DynamoDB Global Tables has automatic failover.**356 DynamoDB does NOT redirect traffic during a regional outage. Failover357 is 100% application-level. The application (SDK retry policy, Route 53358 health check, or manual switch) must detect the failure and redirect359 to another region. Without a failover mechanism, the application will360 fail until the region recovers.361362- **NEVER assume PITR, autoscaling, or IAM policies are replicated363 across regions.** Each replica region is independently configured.364 Enabling PITR in us-east-1 does NOT enable it in eu-west-1. Always365 configure PITR, autoscaling, and IAM per-region after adding a replica.366367- **NEVER write concurrently to the same item from multiple regions368 without LWW-aware design.** Global Tables v2 uses LAST_WRITER_WINS369 exclusively. Concurrent writes to the same partition key from370 different regions will overwrite each other in a non-deterministic371 order (based on timestamp). Use region-specific keys, or372 DynamoDB Streams for merge, or accept LWW semantics.373374- **NEVER assume schema changes propagate automatically.** Adding a375 GSI to one replica does NOT create it on other replicas. Billing376 mode changes, table class changes, and TTL configuration must each377 be applied region by region. Always plan schema changes as a378 per-region operation.379380## Remediation guidance381382Per-operation remediation sequences (create-global-table, add-replica, remove-replica, failover, enable-pitr) moved verbatim to [references/global-tables-procedures.md](references/global-tables-procedures.md).383Load on demand when executing any operation end-to-end.384385## Recent AWS features (2024-2026)386387Recent AWS features 2024-2026 (v2-only APIs, per-region PITR, ReplicationLatency metrics, cost attribution, strong-consistency preview, DeleteProtectionEnabled) moved verbatim to [references/advanced-patterns.md](references/advanced-patterns.md).388Load on demand when deciding between v2 capabilities.389390## References391392See `references/global-tables-procedures.md` for the full operation393procedures (create, add-replica, remove-replica, failover, PITR), and394`references/multi-region-dr-guide.md` for the disaster recovery395planning guide including failover runbooks and RTO/RPO analysis.396397## References (load on demand)398399- [`references/advanced-patterns.md`](references/advanced-patterns.md) — expert heuristics, Step 0 expert behaviors, and recent AWS features (2024-2026) moved from SKILL.md400- [`references/diagnostic-commands.md`](references/diagnostic-commands.md) — pre-flight and diagnostic command listings moved from SKILL.md401- [`references/worked-examples.md`](references/worked-examples.md) — the remove-replica (BLOCKED) and regional failover (COMPLETED) worked examples moved from SKILL.md; the add-replica (READY) example stays inline402- [`references/global-tables-procedures.md`](references/global-tables-procedures.md) — per-operation remediation sequences moved from SKILL.md, plus the pre-existing full operation procedures403404## Domain405406AWS CloudOps / DynamoDB Global Tables Multi-Region Replication and407Disaster Recovery.408409## AWS documentation410411- **DynamoDB Global Tables** — https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html412- **Global Tables v2** — https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html413- **Multi-region resilience** — https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.bestpractices.html414- **DynamoDB Continuous Backups (PITR)** — https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/PointInTimeRecovery.html415- **DynamoDB CLI Reference** — https://docs.aws.amazon.com/cli/latest/reference/dynamodb/