Help Center/ TaurusDB_TaurusDB for PostgreSQL/ FAQs/ Database Connection/ What Should I Do If an ECS Cannot Connect to a TaurusDB for PostgreSQL Instance over a Private Network?
Updated on 2025-11-14 GMT+08:00

What Should I Do If an ECS Cannot Connect to a TaurusDB for PostgreSQL Instance over a Private Network?

Perform the following steps to identify the problem:

  1. Check whether the ECS and the TaurusDB 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 TaurusDB for PostgreSQL instance is located.

  2. Check whether the security group rules of the TaurusDB for PostgreSQL instance are appropriate.
  3. On the ECS, check whether the TaurusDB for PostgreSQL instance port can be connected.

    The default port of TaurusDB for PostgreSQL is 5432.

    curl -kv Private_IP_address: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.