Help Center/ Database and Application Migration UGO/ Drawer/ Connecting to a Target Database Using VPC Endpoint
Updated on 2024-11-13 GMT+08:00

Connecting to a Target Database Using VPC Endpoint

Figure 1 shows how data is migrated to a target database using VPC Endpoint.

Figure 1 Connecting to a target database using VPC Endpoint

Buying a Dedicated Load Balancer

  1. Log in to the Huawei Cloud console.
  2. Click the icon next to All Services and choose Networking > Elastic Load Balance.
  3. Click Buy Elastic Load Balancer, select Dedicated, and configure other parameters.

  4. Click the created load balancer.

    Figure 2 Load balancer list

  5. Click the Listeners tab.

    Figure 3 Listener list

  6. Click Add Listener. Configure the listener and routing policy and go to the Add Backend Server page. Click IP as Backend Servers, configure the IP address, port number, and routing weight of the target database, and click Submit.

    Figure 4 Add IP as Backend Server

Creating a VPC Endpoint Service

  1. Log in to the Huawei Cloud console.
  2. Click the icon next to All Services and choose Networking > VPC Endpoint. Choose VPC Endpoint Services in the navigation pane.
  3. Add a port mapping of the target database.
  4. Click Buy VPC Endpoint and select Elastic load balancer for Backend Resource Type.

    Figure 5 Creating a VPC endpoint service

  5. Click Create Now.

    For details about how to create a VPC endpoint service, see Creating a VPC Endpoint Service.

Testing Database Connectivity

  1. On the Basic Information page, select VPC Endpoint for DB Connection Mode.
  2. Select the created VPC endpoint service from the VPC Endpoint drop-down list.

    Figure 6 Selecting VPC Endpoint

  3. Select the created port mapping from the Port Mapping drop-down list.
  4. Set DB Name, Username, and Password and click Test Connection.

    Figure 7 Test Connection