Updated on 2024-12-13 GMT+08:00

Step 1: Buy a VPC Endpoint for Connecting to DNS

Scenarios

This section describes how to buy a VPC endpoint for accessing DNS to resolve OBS domain names.

Prerequisites

The required VPC endpoint service is available.

Procedure

  1. Go to the VPC endpoint list page.
  2. On the VPC Endpoints page, click Buy VPC Endpoint.

    The Buy VPC Endpoint page is displayed.

  3. Configure VPC endpoint parameters.
    Table 1 VPC endpoint parameters

    Parameter

    Example Value

    Description

    Region

    CN-Hong Kong

    Specifies the region where the VPC endpoint will be used to connect a VPC endpoint service.

    Resources in different regions cannot communicate with each other over an intranet. For lower latency and quicker access, select the region nearest to your on-premises data center.

    Billing Mode

    Pay-per-use

    Specifies the billing mode of the VPC endpoint.

    Only pay-per-use billing is supported.

    Service Category

    Cloud services

    There are two options:

    • Cloud services: Select this value if the target VPC endpoint service is a cloud service.
    • Find a service by name: Select this value if the target VPC endpoint service is a private service of your own.

    In this example, select Cloud services.

    Service List

    com.myhuaweicloud.na-mexico-1.dns

    -

    This parameter is available only when you select Cloud services for Service Category.

    The VPC endpoint service has been created by the O&M personnel and can be directly selected.

    In this example, select com.myhuaweicloud.na-mexico-1.dns.

    Create a Private Domain Name

    -

    If you want to access a VPC endpoint using a domain name, select Create a Private Domain Name.

    This parameter is mandatory when the VPC endpoint will be used to access an interface VPC endpoint service.

    VPC

    -

    Specifies the VPC where the VPC endpoint is to be deployed.

    Subnet

    -

    This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    Specifies the subnet where the VPC endpoint is to be located.

    Private IP Address

    -

    This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    This parameter specifies the private IP address of the VPC endpoint. You can select Automatically assign or Manually specify.

    This parameter needs to be configured only in some regions. For details, see the information displayed on the console.

    Access Control

    Enable

    This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    It controls IP addresses and CIDR blocks that are allowed to access the VPC endpoint.

    • If Access Control is enabled, only IP addresses or CIDR blocks in the whitelist are allowed to access the VPC endpoint.
    • If Access Control is disabled, any IP address or CIDR block can access the VPC endpoint.

    Whitelist

    -

    This parameter is available only when you create a VPC endpoint for connecting to an interface VPC endpoint service.

    Lists the IP addresses or CIDR blocks that are allowed to access the VPC endpoint. You can add a maximum of 20 records.

    Tag

    example_key1

    example_value1

    Specifies the tag that is used to classify and identify the VPC endpoint.

    The tag settings can be modified after the VPC endpoint is purchased

    Description

    -

    Provides supplementary information about the VPC endpoint.

    Table 2 Tag requirements for VPC endpoints

    Parameter

    Requirement

    Tag key

    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain a maximum of 36 characters.
    • Can contain only letters, digits, hyphens (-), and underscores (_).

    Tag value

    • Cannot be left blank.
    • Can contain a maximum of 43 characters.
    • Can contain only letters, digits, hyphens (-), and underscores (_).
  4. Confirm the settings and click Next.
    • If all of the settings are correct, click Submit.
    • If any of the specifications are incorrect, click Previous to modify the parameter settings as needed, and click Submit.
  5. Click Back to VPC Endpoint List after the task is submitted.

    If the status of the VPC endpoint changes to Accepted, the VPC endpoint for connecting to com.myhuaweicloud.na-mexico-1.dns is created.

  6. In the VPC endpoint list, click the ID of the target VPC endpoint to view its details.

    After a VPC endpoint for accessing an interface VPC endpoint service is created, a private IP address is assigned together with a private domain name if you select Create a Private Domain Name during creation.