

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 部署解决方案
<a name="deploy-the-solution"></a>

设置先决条件后，请按照 [DR Orchestrator Framewor](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/automate-cross-region-failover-and-failback-by-using-dr-orchestrator-framework.html) k 模式中的说明进行操作。包含针对亚马逊和亚马逊RDSAurora的说明 ElastiCache。要测试解决方案，请查看先决条件和限制，然后在上部署示例数据库 AWS。

**先决条件**
+ 正在积极部署[AWS 账户](https://aws.amazon.com/free/)此解决方案。
+ 创建[亚马逊简单存储服务 (Amazon S3) S](https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html) ervice 存储桶和模板中使用的资源的权限。[AWS CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html)
+ 在运行`DR Orchestrator FAILBACK`状态机之前：
  + 手动[修改RDS实例](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)或修[改 Amazon Aurora 数据库集群](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Modifying.html)，然后将其禁用`DeletionProtection`。
  + 如果您计划执行根本原因分析，请在删除 Amazon RDS 实例或 Aurora 集群之前[拍摄数据库快照](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html) (RCA)。

**限制**
+ 功能可用性和支持因每个数据库引擎的特定版本和不同版本而异 AWS 区域。有关跨区域复制功能和区域可用性的更多信息，请参阅[跨区域只读](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RDS_Fea_Regions_DB-eng.Feature.CrossRegionReadReplicas.html)副本。
+ 此解决方案已使用带有一个只读副本的主数据库实例进行了测试。如果要使用多个只读副本，请在生产环境中实施解决方案之前对其进行全面测试。
+ 对于亚马逊RDS，该解决方案仅支持以下引擎：[我的亚马逊RDSSQL](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html)、[Postgre RDS SQL 的亚马逊](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html)和 [MariaDB RDS 的亚马逊](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html)。

**在上部署示例数据库 **AWS****

要在上演示数据库的跨区域灾难恢复解决方案 AWS，你可以部署 [Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html) for My SQL、A [mazon Aurora 我的SQL兼容版](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.AuroraMySQL.html)和[亚马逊 ElastiCache (RedisOSS)-](https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/WhatIs.html) 全球数据存储。使用 [aws-cross-region-dr-databases GitHub 存储库`App-Stack``README`](https://github.com/aws-samples/aws-cross-region-dr-databases/tree/main/App-Stack)文件中的说明。在此示例中，主区域为`us-east-1`，次要区域为`us-west-2`。

应用程序堆栈使用 “ AWS CloudFormation [输出” 部分导出](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html) DR Orchestrator Framework 用于自动执行数据库故障转移和故障恢复的参数。 AWS 