What does this AWS Solutions Implementation do?

This solution deploys a reference architecture that models a serverless active/passive workload with asynchronous replication of application data and failover from a primary to a secondary AWS Region. To verify that regional failover is working, a sample photo-sharing web application can also be deployed, serving as a visual demonstration for the backend layers. This solution allows for a 15-minute Recovery Point Objective (RPO) and a Recovery Time Objective (RTO) of a few seconds.

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 uses AWS CloudFormation StackSets to deploy the routing layer and back-end infrastructure in both the primary and secondary (failover) AWS Regions. An optional second AWS CloudFormation template can be deployed after the solution’s main template has completed deployment. This second template deploys an AWS Amplify sample web application hosted in an Amazon S3 bucket, an Amazon CloudFront distribution to deliver the web application to users, and an Amazon Cognito user pool and identity pool to enable users to access the web application, the routing layer, and the back-end infrastructure resources.  

After the web application loads, 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. Depending on the state of the application, a message may be displayed to indicate whether or not certain actions are available, or if the application must be refreshed.

Multi-Region Application Architecture

Version 1.1.0
Last updated: 01/2021
Author: AWS

Estimated deployment time: 5 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.
Solving with AWS Solutions: Multi-Region Application Architecture
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