Can an External Server Access the DDS DB Instance?
You can access the DDS DB instance using the following methods:
- If a DDS DB instance and an ECS are created in the same VPC, you can access the DDS DB instance through the ECS.
- If the DDS DB instance is publicly accessible, you can access the DB instance over public networks.
Case 1
- Symptom: Failed to access a DDS DB instance through the ECS in the container that is created using Cloud Container Engine (CCE).
- Possible cause: The DB instance and ECS are in different VPCs and the VPC peering connection is not established between the two VPCs.
- Solution: Add the CIDR block of the VPC where the container resides to DDS. Establish a VPC peering connection between two VPCs. For more information about VPC peering connections, see VPC Peering Connection Creation Procedure.
Case 2
- Symptom: A user can log in to a DDS DB instance through a client but fails to access the DB instance through a VPN.
- Possible cause: No VPC peering connection is configured, and the address mapping is incorrect. As a result, the connection fails.
- Solution: Configure a VPC peering connection to enable local access to the DDS DB instance through a VPN.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.