By default, ApsaraDB for Redis provides Virtual Private Cloud (VPC) endpoints for instances. To connect to a Tair instance over the Internet, you must apply for a public endpoint for the instance first.
Precautions
You cannot apply for public endpoints for cloud-native cluster instances in direct connection mode.
For security concerns, you still need to enter a password when you use a public endpoint to connect to a Redis instance that has password-free access enabled.
Public endpoints may expose your Redis instances to security risks. Proceed with caution.
Network types of endpoints
Network type | Description |
VPC |
|
Classic network | Cloud services deployed in the classic network are not isolated. Unauthorized access can be blocked only by using security groups or whitelists. If your cloud services are deployed in the classic network, we recommend that you change the network type to VPC. For more information, see Change the network type from classic network to VPC. |
Internet | Security risks exist when you connect to an ApsaraDB for Redis instance over the Internet. For this reason, ApsaraDB for Redis does not provide public endpoints by default. To connect to an ApsaraDB for Redis instance over the Internet, you can apply for a public endpoint for the instance in the following scenarios:
Note
|
Billing
You are not charged for applying for public endpoints and the traffic that is generated when you use public endpoints to connect to your instances.
Procedure
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the Connection Information section, click Apply for Endpoint to the right of Public Access.
NoteIf the instance is a cloud-native cluster instance in direct connection mode, the Apply for Endpoint button is not displayed or is dimmed.
In the panel that appears, enter an endpoint and a port number.
Parameter
Description
Endpoint
You can modify only the prefix of the endpoint. By default, the prefix is the instance ID.
The prefix must be 8 to 40 characters in length and can contain lowercase letters and digits. It must start with a lowercase letter.
Port
When you modify the endpoint, you can also modify the port number. Valid values for this parameter: 1024 to 65535.
Click OK.
After the application is submitted, the public endpoint is displayed in the Connection Information section.
Related API operations
API operation | Description |
Applies for a public endpoint for an ApsaraDB for Redis instance. |
FAQ
Are you charged for applying for a public endpoint?
Why am I unable to find the entry point to apply for a public endpoint for an instance?
Can I enable password-free access when I connect to an instance over the Internet?
What do I do if the "Current engine version does not support operations" error occurs?
What to do next
Use a public endpoint to connect to an ApsaraDB for Redis instance