Help Center/ Relational Database Service_RDS for MySQL/ FAQs/ Database Connection/ What Should I Do If an ECS and an RDS Instance Deployed in Different VPCs Cannot Communicate with Each Other?
Updated on 2026-11-09 GMT+08:00

What Should I Do If an ECS and an RDS Instance Deployed in Different VPCs Cannot Communicate with Each Other?

  1. Switch the VPC of the ECS to the same VPC as the RDS instance.
  2. Create a VPC peering connection between two different VPCs to enable private network communication.