Amazon DynamoDB Global Tables with Cross-Account Read Access

AWS CLI Reader workload → AWS IAM Cross-account role → Amazon DynamoDB Source Region → Amazon DynamoDB Replica Region

Deploy an Amazon DynamoDB global table with an AWS Identity and Access Management (IAM) role that grants another AWS account read-only access in both Regions.

This pattern creates an Amazon DynamoDB global table (same-account, multi-Region) with an IAM role for cross-account read access.
The reader account assumes the IAM role with an external ID and can query the table in either Region.
DynamoDB handles replication automatically with sub-second latency between Regions.
Point-in-time recovery is enabled for data protection.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/dynamodb-global-table-cross-account-read/typescript/cdk

Deploy

cdk deploy --parameters ReplicaAccountId=<READER_ACCOUNT_ID> --parameters ExternalId=<EXTERNAL_ID> -c replicaRegion=us-west-2


Testing

See the README for testing instructions.

Cleanup

cdk destroy -c replicaRegion=

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS