Search code examples
mysqlamazon-web-servicesgoogle-cloud-platformamazon-rdsgoogle-cloud-sql

MySQL Master Slave Replication between AWS and GCP


I have been working on a project in Mysql Master slave replication. I want to setup a master slave replication between AWS and GCP where AWS has the AWS RDS as the master and the slave or replica is in the GCP side. But I want to create this replica on GCP side without publicly exposing the master instance on AWS. That means this should happen in a private network.

I have found solutions where we can create proxy for the master instance and then create replica on the GCP side using the Cloud SQL migration services. But this is not what what I want. I don't want to assign a proxy to the master instance.

The replica creation process should be within a private network.

What should I do next? Help.

Also, please do let me know if the question is still unclear.


Solution

  • If private network on the master (AWS) is a must, then this won't be possible. The documentation about using Cloud SQL as External replica is clear on the requirements for the source:

    Ensure that the source database server meets these configuration requirements:

    • An externally accessible IPv4 address and TCP port.