Error: "Your account ID does not exist in an Amazon organization" - 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).

Error: "Your account ID does not exist in an Amazon organization"

Scenario

You get the error "Your account ID does not exist in an Amazon organization" when trying to share a resource with accounts or organizational units (OUs) in your organization.

Cause

This error can happen if the service-linked role AWSServiceRoleForResourceAccessManager isn't successfully created when you turn on integration between Amazon Resource Access Manager and Amazon Organizations.

Solution

To re-create the required service-linked role, perform the following steps to turn off integration and then turn it on again.

Important

When you disable trusted access to Amazon Organizations, principals within your organization are removed from all resource shares and lose access to those shared resources.

  1. Sign in to your the management account of your organization using an IAM role or user with administrative permissions.

  2. Navigate to the Services page in the Amazon Organizations console.

  3. Choose RAM.

  4. Choose Disable trusted access.

  5. Navigate to the Settings page in the Amazon RAM console.

  6. Select the box Enable sharing with Amazon Organizations, and then choose Save settings.

You should now be able to use Amazon RAM to share your resources with accounts and OUs in the organization.