Updated on 2024-04-15 GMT+08:00

Creating a VPC Endpoint

Scenarios

VPC endpoints are secure and private channels for connecting VPCs to VPC endpoint services.

You can create a VPC endpoint to connect a resource in your VPC to a VPC endpoint service in another VPC of the same region.

A VPC endpoint comes with a VPC endpoint service. VPC endpoints vary depending on the type of the VPC endpoint services that they can access.
  • VPC endpoints for accessing interface VPC endpoint services are elastic network interfaces that have private IP addresses.
  • VPC endpoints for accessing gateway VPC endpoint services are gateways, with routes configured to distribute traffic to the associated VPC endpoint services.

You can create an interface or a gateway VPC endpoint based the type of the associated VPC endpoint service.

Constraints

  • VPC endpoints are region-level resources. Select a region and project when you create such a VPC endpoint.
  • Each tenant can create a maximum of 50 VPC endpoints.
  • When you create a VPC endpoint, ensure that the associated VPC endpoint service is deployed in the same region as the VPC endpoint.

Creating a VPC Endpoint for Accessing Interface VPC Endpoint Services

  1. Log in to the management console.
  2. Click in the upper left corner and select the required region and project.
  3. Click Service List and choose Networking > VPC Endpoint.
  4. On the VPC Endpoints page, click Create VPC Endpoint.
  5. On the Create VPC Endpoint page, configure the parameters.
    Table 1 VPC endpoint parameters

    Parameter

    Description

    Region

    Specifies the region where the VPC endpoint is to be located. Resources in different regions cannot communicate with each other over an intranet. For lower latency and quicker access, select the nearest region.

    Service Category

    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.

    Service List

    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 you can directly use it.

    VPC Endpoint Service Name

    This parameter is available only when you select Find a service by name for Service Category.

    In the VPC endpoint service list, locate the target VPC endpoint service, copy its name in the Name column, paste it to the VPC Endpoint Service Name text box, and click Verify.

    • If "Service name found." is displayed, proceed with subsequent operations.
    • If "Service name not found." is displayed, check whether the region is the same as that of the VPC endpoint service or whether the name entered is correct.

    VPC

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

    Subnet

    This parameter is available when you want to access an interface VPC endpoint service.

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

  6. Confirm the specifications and click Create Now.
    • If all of the specifications are correct, click Submit.
    • If any of the specifications are incorrect, click Previous to return to the previous page and modify the parameters as needed, and click Submit.

Creating a VPC Endpoint for Accessing Gateway VPC Endpoint Services

  1. Log in to the management console.
  2. Click in the upper left corner and select the required region and project.
  3. Click Service List and choose Networking > VPC Endpoint.
  4. On the VPC Endpoints page, click Create VPC Endpoint.
  5. On the Create VPC Endpoint page, configure the parameters.
    Table 2 VPC endpoint parameters

    Parameter

    Description

    Region

    Specifies the region where the VPC endpoint is to be located. Resources in different regions cannot communicate with each other over an intranet. For lower latency and quicker access, select the nearest region.

    Service Category

    Specifies the type of services that are configured as gateway VPC endpoint services. Only cloud services are supported.

    Select Cloud services.

    Service List

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

    In the VPC endpoint service list, select the VPC endpoint service whose type is gateway.

    The VPC endpoint service has been created by the O&M personnel and you can directly use it.

    VPC

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

  6. Confirm the specifications and click Create Now.
    • If all of the specifications are correct, click Submit.
    • If any of the specifications are incorrect, click Previous to return to the previous page and modify the parameters as needed, and click Submit.