Skip to main content

Create an Alibaba Cloud PrivateLink Connection

Create a private network connection between NineData and Alibaba Cloud so NineData can connect to Alibaba Cloud services without exposing the database over a public network.

Alibaba Cloud supports two setup modes:

  • Automatic creation: NineData uses configured Alibaba Cloud access credentials to create the private network connection.
  • Manual creation: You create the Alibaba Cloud endpoint in the Alibaba Cloud console, then enter the endpoint details in NineData.

Prerequisites

  • The data source is hosted on Alibaba Cloud.
  • Alibaba Cloud Endpoint Service is activated for your Alibaba Cloud account. To activate it, open the Alibaba Cloud Endpoint Console and select Active Endpoint Service.

Limitations

Private network connections are supported in these regions: Alibaba Cloud China (Hangzhou), Alibaba Cloud China (Beijing), Alibaba Cloud China (Shenzhen), and Alibaba Cloud Singapore.

Automatically Create a Private Network Connection

Before using automatic creation, configure an Alibaba Cloud AccessKey or RAM role in NineData. For details, see Configure cloud vendor access credentials.

  1. Log in to the NineData Console.

  2. Go to Datasource > PrivateLink.

  3. Click Create PrivateLink.

  4. On the Create PrivateLink page, configure the parameters.

    ParameterDescription
    NameEnter a private network connection name that is easy to identify later.
    Cloud VendorSelect Alibaba Cloud.
    AuthorizeSelect Authorize cloud vendor access permissions and automatically create.
    RegionSelect the region where the data source that requires private network access is located.
    Cloud Vendor Root Account IDEnter the Alibaba Cloud main account ID. After entering the ID, select a blank area on the page. Continue after the Add Successfully prompt appears.
    Note: Only the main account ID is supported. Sub-account IDs are not supported. Contact the main account owner if you need the main account ID.view_aliyun_account_id
    Access CredentialsSelect the configured cloud vendor access credential. If no credential exists, see Configure cloud vendor access credentials.
    VPCSelect the VPC used for the endpoint.
    Important: The VPC must be the same as the ECS VPC, or the two VPCs must have intranet connectivity.
  5. Click Test Connection and wait for the Connection Succeeded prompt.

  6. Click Create PrivateLink.

    tip
    • If the connection test fails, adjust the parameter configuration and test again.
    • If the system reports Privatelink-CreateVpcEndpoint: The product is not activated., Alibaba Cloud Endpoint Service is not activated. Open the Alibaba Cloud Endpoint Console and select Active Endpoint Service.

Manually Create a Private Network Connection

  1. Log in to the NineData Console.

  2. Go to Datasource > PrivateLink.

  3. Click Create PrivateLink.

  4. On the Create PrivateLink page, configure the parameters.

    ParameterDescription
    NameEnter a private network connection name that is easy to identify later.
    Cloud VendorSelect Alibaba Cloud.
    AuthorizeSelect Without authorization, manually create.
    RegionSelect the region where the data source that requires private network access is located.
    Cloud Vendor Root Account IDEnter the Alibaba Cloud main account ID. After entering the ID, select a blank area on the page. Continue after the Add Successfully prompt appears.
    Note: Only the main account ID is supported. Sub-account IDs are not supported. Contact the main account owner if you need the main account ID.
    Endpoint IDEnter the endpoint instance ID created in Alibaba Cloud. To create the endpoint, see Appendix: Create an Alibaba Cloud endpoint.
    Endpoint IPEnter the endpoint IP address. To obtain it, see Appendix: Create an Alibaba Cloud endpoint.
  5. Click Connection Test and wait for the Connection Succeeded prompt.

  6. Click Create PrivateLink.

    tip

    If the connection test fails, adjust the parameter configuration and test again.

Appendix: Create an Alibaba Cloud Endpoint

Note: Alibaba Cloud does not charge for creating an endpoint.

  1. Log in to the Alibaba Cloud Endpoint Console.

  2. Select the Reverse Endpoint tab.

  3. Click Create Endpoint.

    tip

    If Create Endpoint is unavailable, Endpoint Service has not been activated for the account. Select Active Endpoint Service, accept the service agreement, and click Activate PrivateLink.

    Create an Alibaba Cloud endpoint

  4. Configure the endpoint parameters.

    ParameterDescription
    Endpoint NameEnter an endpoint name. The name must be 2 to 128 characters, start with an English letter, and can contain numbers, underscores (_), and hyphens (-).
    Endpoint TypeSelect Reverse Endpoint.
    Endpoint ServiceSelect the Select Services tab, paste the Connection Endpoint Service ID provided in NineData into the input box, press Enter, and select the filtered service.
    Note: If no result appears, confirm that the Connection Endpoint Service ID is correct.
    VPCSelect the VPC used by the ECS where the data source resides.
    Security GroupsSelect a security group. If no security group exists, see the Alibaba Cloud documentation.
    Zones and vSwitchesSelect the zone and vSwitch of the ECS where the data source is located.
  5. Click OK.

  6. After creation is complete, record the instance ID and IP Address, then return to continue configuring the private network connection.

    Alibaba Cloud endpoint details

Result

The Alibaba Cloud PrivateLink connection is created in NineData and can be used when you add or manage Alibaba Cloud data sources.

Next Step

Manage data sources