Help Center> Relational Database Service> FAQs> Database Connection> What Should I Do If the ECS and RDS Are Deployed in Different VPCs and They Cannot Communicate with Each Other?

What Should I Do If the ECS and RDS Are Deployed in Different VPCs and They Cannot Communicate with Each Other?

Solution

  1. Change the VPC hosting the ECS to the same as that hosting the RDS by referring to Changing a VPC.
  2. Create a VPC peering connection by referring to VPC Peering Connection Overview.