ApsaraDB RDS provides an internal endpoint that you can use to connect to your ApsaraDB RDS for PostgreSQL instance from an Alibaba Cloud instance such as an Elastic Compute Service (ECS) instance within the same virtual private cloud (VPC) as the RDS instance. If your application is deployed on an Alibaba Cloud instance that resides in a different VPC from the RDS instance or an on-premise device, you must apply for a public endpoint and use the public endpoint to connect the application to your RDS instance.
Internal and public endpoints
Endpoint type | Description |
Internal endpoint |
|
Public endpoint |
Important
|
Limits
If forceful SSL encryption is enabled for the internal endpoint of the RDS instance, you cannot apply for a public endpoint for the instance. For more information, see Configure the SSL encryption feature. To apply for a public endpoint, you must disable forceful SSL encryption for the internal endpoint of the RDS instance and set the Forceful Encryption parameter to No for the internal or public endpoint based on your business requirements. This helps meet Internet-based access requirements and ensures data security. For more information, see Configure the SSL encryption feature.
Apply for or release a public endpoint
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Database Connection.
Apply for or release a public endpoint.
If you have not applied for a public endpoint, click Apply for Public Endpoint.
If you have applied for a public endpoint, you can click Release Public Endpoint.
In the message that appears, click OK.
ImportantAfter the public endpoint is released, clients cannot connect to the RDS instance by using the released public endpoint.
References
After you apply for a public endpoint, you must add the public IP address of the client or the device on which the application resides to an IP address whitelist of your RDS instance. This way, you can connect to the RDS instance over the Internet. For more information, see Configure an IP address whitelist.
You can connect to an RDS instance by using the SQL Server Management Studio (SSMS) client or Data Management (DMS) that is provided by Alibaba Cloud. For more information, see Connect to an ApsaraDB RDS for SQL Server instance.
You can also call operations to apply for or release a public endpoint.