Help Center> Scalable File Service> Getting Started> Configure a VPC Endpoint
Updated on 2024-06-27 GMT+08:00

Configure a VPC Endpoint

Context

VPC Endpoint (VPCEP) provides reliable channels to connect VPCs to General Purpose File Systems. By configuring VPC endpoints, compute resources in VPCs can access General Purpose File Systems.

Before mounting a General Purpose File System to a compute resource, you need to create a VPC endpoint in the region where the compute resource belongs. VPC endpoints can be created for General Purpose File System in the following regions: CN North-Beijing4, CN East-Shanghai1, and CN South-Guangzhou. In the regions beside those ones, SFS Capacity-Oriented and SFS Turbo are recommended.

VPC endpoints are not required for SFS Capacity-Oriented and SFS Turbo file systems.

Figure 1 Configuration process

Prerequisites

  1. Before creating a General Purpose File System, ensure that a VPC is available.

    If no VPC is available, create one by referring to Creating a VPC in the Virtual Private Cloud User Guide.

  2. Before creating a General Purpose File System, ensure that ECSs are available and in the available VPC.

    If no ECSs are available, buy ECSs by referring to Purchasing an ECS and Logging In to an ECS in the Elastic Cloud Server Getting Started.

Procedure

  1. Log in to the Huawei Cloud console.

    1. Log in to the management console.
    2. Click in the upper left corner and select your desired region and project.
    3. Choose Networking > VPC Endpoint > VPC Endpoints.

  2. On the VPC Endpoints page, click Buy VPC Endpoint.

    The Buy VPC Endpoint page is displayed.

    Figure 2 Buy VPC Endpoint

  3. Set the parameters as prompted.

    Table 1 Parameters for purchasing an endpoint

    Parameter

    Description

    Region

    Region where the VPC endpoint is located. Ensure that this region is the same as the one where the planned General Purpose File System resides.

    VPCEP supports General Purpose File System only in the CN North-Beijing4, CN East-Shanghai1, and CN South-Guangzhou regions.

    Billing Mode

    Pay-per-use is preselected by default, but you will not be billed for the endpoint purchased for General Purpose File Systems.

    Service Category

    Select Find a service by name.

    Enter a VPC endpoint service name based on the region selected.

    • If the CN North-Beijing4 region is selected, enter cn-north-4.com.myhuaweicloud.v4.storage.lz13.
    • If the CN South-Guangzhou region (AZ1) is selected, enter cn-south-1.com.myhuaweicloud.v4.obsv2.
      NOTE:

      General Purpose File Systems created in AZ1 of the CN South-Guangzhou region cannot be mounted to containers.

    • If the CN South-Guangzhou region (AZ6) is selected, enter cn-south-1.com.myhuaweicloud.v4.obsv2.storage.lz06.
    • If the CN East-Shanghai1 region is selected, enter cn-east-3.com.myhuaweicloud.v4.storage.lz07.

    After entering the service name, click Verify.

    If Service name found is displayed, proceed with subsequent steps.

    If Service name not found is displayed, check whether the entered service name is correct. If the problem persists, submit a service ticket.

    VPC

    VPC where the planned General Purpose File System and ECSs reside.

    Tag

    Optional

    VPC endpoint tags. Each tag consists of a key and a value. You can add a maximum of 10 tags to one VPC endpoint.

    Tag keys and values must meet the requirements listed in Table 2.

    NOTE:
    • If a predefined tag has been created in TMS, you can select the corresponding tag key and value. For details about predefined tags, see Predefined Tag Overview.
    Table 2 describes the tag parameters.
    Table 2 Tag parameter description

    Parameter

    Description

    Example Value

    Tag key

    Each tag has a unique key. You can customize the key or select the key of an existing tag created in TMS.

    A tag key:

    • Can contain 1 to 36 Unicode characters.
    • Can contain only letters, digits, hyphens (-), and underscores (_).

    Key_0001

    Tag value

    A tag value can be repetitive or left blank.

    A tag value:

    • Can contain 0 to 43 Unicode characters.
    • Can contain only letters, digits, hyphens (-), and underscores (_).

    Value_0001

  4. Click Next.

    • If you do not need to modify the specifications, click Submit.
    • If you need to modify the specifications, click Previous, modify the configuration as needed, and then click Submit.

  5. Go back to the VPC endpoint list and check whether the status of the VPC endpoint changes to Accepted. If so, the VPC endpoint has been connected to the VPC endpoint service.