Reputation: 707
Nowhere does this seem to be documented, and a few questions on SO also presume that the Aurora RDS is available on "public dns".
With this setup, what should I do? In any of the above EC2, when I do this:
mysql -h <endpoint> -P 3306 -u <masteruser> -p
This just hangs there. Which means the IP is being blocked? In my RDS security group, I've specifically allowed the IP of my EC2 instance.
Any ideas how to set this up, or any directions on this? Google searches haven't helped. Thank you!
Upvotes: 0
Views: 1171
Reputation: 19563
RDS is not multi region. It will replicate between availability zones within one region, but not between regions. Network latency makes it a hard problem to solve when things like transactions and consistency matter.
Internal networking (VPC) is also limited to a single region. Though you could create VPN gateways to allow instances in other regions to communicate via secure channels.
Depending on your data an application, one of the following solutions may work.
Cluster your application per region. Each region will have its own database and application instances.
Keep your database in a single region but utilize CDN's and caching as much as possible to improve performance for other regions.
Consider using a database that takes multi datacenter deployments into its design.
Upvotes: 1