ApsaraDB RDS supports two types of endpoints: internal endpoints and public endpoints. By default, you are provided with an internal endpoint to connect to your ApsaraDB RDS instance. If you want to connect to your instance over the Internet, you must apply for a public endpoint.
For more information about how to apply for or release public endpoints for RDS instances that run other database engines, see the following topics:
Internal and public endpoints
Address Type | Description |
Internal endpoint |
|
Public endpoint |
Important
|
Considerations
After you release a public endpoint and apply for a new one, the new public endpoint is different from the released one. You must update the connection configurations on your business side with the new public endpoint to ensure normal service operation.
If you have enabled Secure Sockets Layer (SSL) encryption for the public endpoint of your instance, you must disable SSL before you release the public endpoint. Disabling SSL encryption restarts your instance. We recommend that you perform this operation during off-peak hours.
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 navigation pane on the left, click Database Connection.
NoteFor instances of Cluster Edition, you can also apply for or release a public endpoint on the instance topology graph on the Basic Information page of the instance.
Apply for or release a public endpoint:
To apply for a public endpoint, click Apply For Public Endpoint.
To release an existing public endpoint, click Release Public Endpoint.
In the dialog box that appears, click OK.
WarningAdding
0.0.0.0/0
to the whitelist poses a security risk. After testing is complete, please reconfigure the whitelist.To use a public connection, you can use
curl ipinfo.io/ip
to query your local client's public IP address, and add it to the RDS whitelist.
FAQ
Am I charged for the use of a public endpoint?
Currently, you are not charged for the Internet traffic of your instance, including both inbound and outbound traffic. There is currently no bandwidth limit.
Can I configure the endpoints of my RDS instances to static IP addresses?
No, you cannot configure the endpoints of your RDS instance to static IP addresses. Primary/secondary failover or configuration changes may cause IP address changes. We recommend that you use connection addresses to reduce the impact on your business.
Related operations
Use the API operation AllocateInstancePublicConnection to apply for a public endpoint for an instance.
Use the API operation ReleaseInstancePublicConnection to release the public endpoint of an instance.
You can customize and modify the prefix or port number of the internal or public endpoint for your RDS MySQL instance.
For information about how to connect to an RDS MySQL instance using a public endpoint, see Connect to an ApsaraDB RDS for MySQL instance using the command line or a client.