简体   繁体   English

AWS Aurora RDS PostgreSql 通过云形成脚本为现有集群创建全局数据库

[英]AWS Aurora RDS PostgreSql create global database for existing cluster through cloud formation script

We already have a cluster and instance of Aurora PostgreSql in abc region.我们已经在 abc 区域拥有了一个集群和 Aurora PostgreSql 实例。 Now as part of disaster recovery strategy, we are trying to create a read replica in a xyz region.现在作为灾难恢复策略的一部分,我们正在尝试在 xyz 区域中创建只读副本。

I was able to create it manually by clicking on "Add Region" in AWS web console.我可以通过单击 AWS web 控制台中的“添加区域”来手动创建它。 As explained here . 正如这里所解释的

As part of it, following as been created.作为它的一部分,创建如下。 1. A global database to the existing cluster 2. Secondary region cluster 3. Secondary region instance. 1. 现有集群的全局数据库 2. 次要区域集群 3. 次要区域实例。

Everything is fine.一切都很好。 Now I have to implement this through cloud formation script.现在我必须通过云形成脚本来实现这一点。

My first question is, can we do this through Cloud formation script without losing data if primary cluster and instance already created?我的第一个问题是,如果已经创建了主集群和实例,我们能否通过 Cloud Formation 脚本执行此操作而不会丢失数据?

If possible, please share aws doc for cloud formation scripts.如果可能,请分享用于云形成脚本的 aws 文档。

Please see the other post on this subject: CloudFormation templates for Global Aurora Database请参阅有关此主题的另一篇文章: 全球 Aurora 数据库的 CloudFormation 模板

The API that is required for setting up the GlobalCluster is AWS::RDS::GlobalCluster and this is currently not listed in CloudFormation documentation .设置 GlobalCluster 所需的 API 是 AWS::RDS::GlobalCluster,目前未在CloudFormation 文档中列出。

I was able to do the same using Terraform and that is documented for PostgreSQL here: Getting Aurora PostgreSQL Global Database setup using Terraform我可以使用 Terraform 做同样的事情,并且在此处记录了 PostgreSQL: Getting Aurora PostgreSQL Global Database setup using Z303E906F805AE7638604

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM