ApsaraDB RDS for PostgreSQL supports two types of endpoints: internal endpoints and public endpoints. By default, you are provided with an internal endpoint that is used to connect to your RDS instance. If you want to connect to your RDS instance over the Internet, you must apply for a public endpoint.

Internal and public endpoints

Endpoint type Description
Internal endpoint
  • By default, an internal endpoint is provided. You do not need to apply for the internal endpoint. In addition, you cannot release the internal endpoint. However, you can change the network type of your RDS instance.
  • If an Elastic Compute Service (ECS) instance resides in the same region and has the same network type as your RDS instance, these instances can communicate over an internal network. If your application is deployed on such an ECS instance, you do not need to apply for a public endpoint. For more information, see Change the network type of an ApsaraDB RDS for PostgreSQL instance.
  • For security and performance purposes, we recommend that you connect to your RDS instance by using the internal endpoint.
Public endpoint
  • You must manually apply for a public endpoint. You can release the public endpoint if it is no longer required.
  • If you cannot connect to your RDS instance by using the internal endpoint, you must apply for a public endpoint. This includes the following scenarios:
Note
  • You are not charged for the public endpoint or the traffic that is consumed.
  • If you connect to your RDS instance by using the public endpoint, security is compromised. Proceed with caution.
  • We recommend that you migrate your application to an ECS instance that resides in the same region and has the same network type as your RDS instance. This allows you to connect to your RDS instance by using the internal endpoint. The connection expedites transmission and improves security.

Procedure

  1. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Database Connection.
  3. Apply for or release a public endpoint for your RDS instance:
    • If you have not applied for a public endpoint, you can click Apply for Public Endpoint.
    • If you have applied for a public endpoint, you can click Release Public Endpoint.
  4. In the message that appears, click OK.

Related operations

Operation Description
Apply for public endpoint Applies for a public endpoint for an ApsaraDB RDS instance.
Release a public endpoint Releases the public endpoint of an ApsaraDB RDS instance.