Amazon Aurora Serverless Primary to Secondary Global Database

Primary Cluster AWS Fargate → Secondary Cluster AWS Fargate → Primary Amazon Aurora → Secondary Amazon Aurora

Create an Aurora Serverless Global database to replicate across regions

The pattern provisions an Amazon Aurora serverless v2 global database enabling data replication from the primary to secondary region. The regional primary cluster contains a serverless database instance and supports both writes and reads. The regional secondary cluster contains a serverless database instance and supports only reads. In the unlikely event of a regional degradation or outage, the secondary region can be promoted to read and write capabilities in less than 1 minute
Also the pattern adopts the multiple stack capability of CDK to provision the resources across the primary and secondary regions.

< 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/aurora-serverless-global-db-cdk

Deploy

cdk deploy --all


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy --all.

Created by:

Nihilson Gnanadason

Nihilson Gnanadason

Nihilson is a Sr. Solutions Architect at AWS working with ISVs in the UK to build, run, and scale their software products on AWS.

Follow on LinkedIn