You can use the management account or a member of a resource directory to share resources with all members in the resource directory, all members in a specific folder in the resource directory, or a specific member in the resource directory.

Background information

In this example, the management account of a resource directory is used to share one or more vSwitches in a VPC within the account to a member in the resource directory.

Step 1: Enable Resource Sharing

  1. Use the management account of your resource directory to log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Configure.
  3. On the Settings page, click Enable.
  4. In the Service-linked Role for Resource Sharing dialog box, click OK.
    The system creates a service-linked role named AliyunServiceRoleForResourceSharing to obtain the organizational structure of the resource directory. For more information, see Service-linked role for Resource Sharing.

Step 2: Create a resource share

  1. Use the management account of the resource directory to log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region where the resources to be shared reside.
    Note If you want to share global resources, such as templates in Resource Orchestration Service (ROS), you can select only the China (Shanghai) region to create resource shares.
  4. On the Resources I Share page, click Create Resource Share.
  5. On the Create Resource Share page, enter a name in the Resource Share Name field.
  6. In the Select Shared Resource section, select vSwitch from the Resource Type drop-down list, select one or more vSwitches that need to be shared from the Resources table, and then click Add.
  7. In the Add Principal section, select Objects Within Resource Directory for the Principal Scope parameter.
  8. Select Add from Resource Directory for the Add Mode parameter and select the member with which you want to share the resources.
  9. Click OK.
    Then, you can use the member to access the vSwitches that are shared by the management account.