View principals sharing with you - Amazon Resource Access Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

View principals sharing with you

You can view a list of all the principals that are sharing resources with you. You can see which resources and resource shares they're sharing with you.

Console
To view the principals that are sharing resources with you
  1. Open the Amazon RAM console at https://console.amazonaws.cn/ram.

  2. Because Amazon RAM resource shares exist in specific Amazon Web Services Regions, choose the appropriate Amazon Web Services Region from the dropdown list in the upper-right corner of the console. To see resource shares that contain global resources, you must set the Amazon Web Services Region to US East (N. Virginia), (us-east-1). For more information about sharing global resources, see Sharing Regional resources compared to global resources.

  3. In the navigation pane, choose Shared with me, Principals.

  4. (Optional) You can apply a filter to find specific principals. You can apply multiple filters to narrow your search.

  5. The console displays the following information:

    • Principal ID – The ID of the principal who is sharing with you.

    • Resource shares – The number of resource shares to which the principal has added you. Choose the number to view the list of resource shares.

    • Resources – The number of resources the principal is sharing with you. Choose the value to view the list of resources.

Amazon CLI
To view the principals that are sharing resources with you

You can use the list-principals command to retrieve the list of principals that are sharing resources with your Amazon Web Services account.

The following example command displays details about the Amazon Web Services account that shared a resource share with the account used to call the operation in the specified Amazon Web Services Region.

$ aws ram list-principals \ --region us-east-1 \ --resource-owner OTHER-ACCOUNTS { "principals": [ { "id": "111111111111", "resourceShareArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share/8b831ba0-63df-4608-be3c-19096b1ee16e", "creationTime": "2021-09-21T08:50:41.308000-07:00", "lastUpdatedTime": "2021-09-21T09:06:25.545000-07:00", "external": true } ] }