A collection of sample implementations demonstrating resilient architectures for common AWS services and patterns. Each subdirectory is a standalone, fully deployable reference implementation.
These samples show how to build resilient, multi-region, and fault-tolerant systems on AWS. They are intended as reference implementations — study them, learn from them, adapt them to your needs. They are not intended for direct production use without review and customization for your specific requirements.
| Directory | Description |
|---|---|
s3mrap-crr/ |
S3 Multi-Region Access Points with bidirectional Cross-Region Replication, ARC-based failover, CloudWatch observability, and replication latency load testing |
aurora/ |
Aurora Global Database + Aurora DSQL multi-region resilience with ARC Region Switch failover, CloudWatch Synthetics, RPO monitoring, post-failover reconciliation, FIS chaos testing, and load generation |
All samples are written in AWS CDK (TypeScript). Each sample includes:
- CDK stacks with full infrastructure definitions
- CDK assertion tests for template validation
- Deployment automation (Makefile, CodeBuild, or both)
- Cleanup scripts for teardown
- README with architecture diagrams, prerequisites, and walkthrough
If you prefer raw CloudFormation over CDK, you can extract the templates from any sample:
cd <sample-directory>
npm install
npx cdk synth # Synthesize all stacks
ls cdk.out/*.template.json # CloudFormation templates are hereEach .template.json file is a standalone CloudFormation template that can be deployed directly with aws cloudformation deploy or through the CloudFormation console.
These samples are provided for educational and reference purposes only. They are not production-ready as-is. Before using any pattern in production:
- Review and adjust IAM permissions for least privilege
- Evaluate encryption, logging, and compliance requirements
- Test failover and recovery procedures in your environment
- Adjust resource sizing, retention policies, and alarm thresholds
Each sample is self-contained. See the README in each subdirectory for development setup and testing instructions.
This project is licensed under the MIT License — see the LICENSE file for details.