01
Primary + replica
Create a regional table with an optional cross-region replica.
Pattern 08
Reusable DynamoDB table with optional DR replica, GSIs, encryption, PITR, TTL, and migration-safe adoption.
What you get
01
Create a regional table with an optional cross-region replica.
02
Define hash/range keys and optional GSIs for your access patterns.
03
Use PITR, TTL, deletion protection, and SSE without custom resources.
Start here
Add the module to your configuration and customize only what you need.
module "transactions_table" {
source = "pomo-studio/dynamodb-global-table/aws"
version = "~> 1.0"
name = "my-app-transactions"
hash_key = "tenant_id"
attributes = [{ name = "tenant_id", type = "S" }]
enable_dr = true
}Key inputs
Useful outputs
Built with