Updated on 2026-08-11 GMT+08:00

Sharing a VPC

Scenarios

To use CBH to manage ECSs, the ECSs and the CBH instance you are using must be in the same VPC.

Step 1: Create a VPC

  1. Log in to the RAM console.
  2. In the navigation pane on the left, choose Shared by Me > Resource Shares. The Resource Shares page is displayed.
  3. Click Create Resource Share in the upper right corner.
  4. Set resource type to vpc:subnet, choose the corresponding region, and select the VPC to be shared. Click Next: Associate Permissions.
  5. On the Associate Permissions page, associate a RAM managed permission with each resource type, and then click Next: Specify Principals in the lower right corner.
  6. Specify the principals that you want to have access to the resources on the displayed page. Then, click Next: Confirm in the lower right corner.

    Table 1 Description

    Parameter

    Description

    Principal Type

  7. Check the configurations and click OK in the lower right corner.

Step 2: Use a VPC

  1. Log in to the CBH console.
  2. Click in the upper left corner on the displayed page and select a region.
  3. Click Buy CBH Instance to go to the Buy CBH Instance page.
  4. Configure instance parameters as required. You can select the VPC created in Step 1: Create a VPC for VPC.