What does this AWS Solutions Implementation do?

The Multi-Region Application Architecture solution helps demonstrate a fault-tolerant application with easy failover to a backup region. This solution leverages Amazon Simple Storage Service (Amazon S3) Cross-Region replication and Amazon DynamoDB Global Tables to asynchronously replicate application data between the primary and secondary AWS Regions. A sample photo-sharing web application is also deployed in each Region to serve as a visual demonstration of the solution’s back-end layers and to verify that regional failover is working.

AWS Solutions Implementation overview

The diagram below presents the architecture you can automatically deploy using the solution's implementation guide and accompanying AWS CloudFormation template.

Multi-Region Application Architecture | Architecture Diagram
 Click to enlarge

Multi-Region Application Architecture solution architecture

The AWS CloudFormation template deploys an AWS Amplify sample web application hosted in an Amazon S3 bucket in both the primary and secondary AWS Regions; an Amazon CloudFront distribution to deliver the web application to users; Amazon Cognito user pools are deployed in each Region to enable users to sign in to the web application; and Amazon DynamoDB Global Tables to replicate data from the primary to the secondary Region.  

When the web application is loaded, it queries the solution’s routing layer for the current state of the application (active, fenced, failover), and configures AWS Amplify to target the solution’s resources in the correct Region. The state of the application is also retrieved when the user uploads a new photo or adds a comment. If the application is in a fenced or failover state, these actions are disabled by the application and a message is displayed to the user.

Multi-Region Application Architecture

Version 1.0
Last updated: 06/2020
Author: AWS

Estimated deployment time: 20 min

Use the button below to subscribe to solution updates.

Note: To subscribe to RSS updates, you must have an RSS plug-in enabled for the browser you are using.  

Did this Solutions Implementation help you?
Provide feedback 


Web Application

Use the sample photo-sharing web application as a visual demonstration of the solution’s back-end layers and to verify that regional failover is working.

Origin Failover

Manually configure Origin Failover on the solution’s CloudFront to serve the application from the secondary Region.
Build icon
Deploy a Solution yourself

Browse our library of AWS Solutions Implementations to get answers to common architectural problems.

Learn more 
Find an APN partner
Find an APN Partner

Find AWS certified consulting and technology partners to help you get started.

Learn more 
Explore icon
Explore Solutions Consulting Offers

Browse our portfolio of Consulting Offers to get AWS-vetted help with solution deployment.

Learn more