All Products
Search
Document Center

Resource Management:Share resources with an account

Last Updated:Mar 14, 2024

A resource owner can share resources with any principal regardless of whether the resource owner or principal is the management account or a member of a resource directory.

Scenarios

A resource owner can share resources with an account in the following scenarios:

  • An Alibaba Cloud account that is not the management account or a member of a resource directory can share resources with another Alibaba Cloud account that is not the management account or a member of a resource directory.

  • The management account or a member of a resource directory can share resources with an Alibaba Cloud account that is not the management account or a member of the resource directory.

  • The management account or a member of a resource directory can 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.

    Important

    Resource sharing across resource directories is not supported.

In this example, Alibaba Cloud account A shares one or more vSwitches within the account with Alibaba Cloud account B. Alibaba Cloud accounts A and B are not the management account or members of a resource directory.

Step 1: Create a resource share

Use Alibaba Cloud account A to create a resource share, add the vSwitches that need to be shared with Alibaba Cloud account B to the resource share, and then add Alibaba Cloud account B to the resource share as a principal.

  1. Log on to the Resource Management console by using Alibaba Cloud account A.

  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.

  4. On the Shared By Me page, click Create Resource Share.

  5. In the Configure Basic Information and Add Resources step, enter a resource share name in the Resource Share Name field, select the vSwitches that need to be shared, and then click Next.

  6. In the Add Permissions step, select the AliyunRSDefaultPermissionVSwitch permission and click Next.

  7. In the Add Principals step, add a principal and click Next.

    1. Select Alibaba Cloud Account from the Principal Type drop-down list.

    2. Enter the ID of Alibaba Cloud account B in the Principal ID field.

    3. Click Add.

  8. In the Confirm and Submit step, click OK.

Step 2: Accept the resource sharing invitation

Use Alibaba Cloud account B to accept the resource sharing invitation initiated by Alibaba Cloud account A.

  1. Log on to the Resource Management console by using Alibaba Cloud account B.

  2. In the left-side navigation pane, choose Resource Sharing > Resources Shared To Me.

  3. On the Shared To Me page, find the newly created resource share and click Accept in the Status column.

  4. In the Accept Resource Sharing Invitation dialog box, click Accept.

    After the invitation is accepted, Alibaba Cloud account B can be used to access the shared vSwitches, and invitations for using resources that are added to the resource share in the future will be automatically accepted.