Help Center/
Relational Database Service_RDS for PostgreSQL/
FAQs/
Database Connection/
What Should I Do If an ECS Cannot Connect to an RDS for PostgreSQL Instance Through a Private Network?
Updated on 2025-06-24 GMT+08:00
What Should I Do If an ECS Cannot Connect to an RDS for PostgreSQL Instance Through a Private Network?
Perform the following steps to identify the problem:
- Check whether the ECS and RDS for PostgreSQL instance are located in the same VPC.
- If they are in the same VPC, go to 2.
- If they are in different VPCs, create an ECS in the VPC in which the RDS for PostgreSQL instance is located.
- Check whether the security group rules of the RDS instance are appropriate.
For details, see Configuring a Security Group Rule.
- On the ECS, check whether the RDS for PostgreSQL instance port can be connected.
The default port of RDS for PostgreSQL is 5432.
curl -kv EIP:5432
- If the ECS can connect to the DB instance, no further action is required.
- If the ECS cannot connect to the DB instance, contact technical support.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot