Vissu
Vissu

Reputation: 2043

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. Now as part of disaster recovery strategy, we are trying to create a read replica in a xyz region.

I was able to create it manually by clicking on "Add Region" in AWS web console. 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.

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 ?

If possible, please share aws doc for cloud formation scripts.

Upvotes: 0

Views: 1088

Answers (1)

Sumit
Sumit

Reputation: 71

Please see the other post on this subject: CloudFormation templates for Global Aurora Database

The API that is required for setting up the GlobalCluster is AWS::RDS::GlobalCluster and this is currently not listed in CloudFormation documentation.

I was able to do the same using Terraform and that is documented for PostgreSQL here: Getting Aurora PostgreSQL Global Database setup using Terraform

Upvotes: 1

Related Questions