Accepting and rejecting resource share invitations - 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).

Accepting and rejecting resource share invitations

To access shared resources, the owner of the resource share must add you as a principal. The owner can add any of the following as a principal to the resource share.

  • The organization of which your account is a member

  • An organizational unit (OU) that contains your account

  • Your individual account

  • For supported resource types, your specific IAM role or user

If you're added to the resource share through an Amazon Web Services account that is a member of an organization in Amazon Organizations, and sharing within the organization is enabled, then you automatically get access to the shared resources without having to accept an invitation. If the account through which you receive access is later removed from the organization, then any principals in that account automatically lose access to the resources that were accessed through that resource share.

If you're added to a resource share by one of the following, you receive an invitation to join the resource share:

  • An account outside of your organization in Amazon Organizations

  • An account inside your organization when sharing with Amazon Organizations is not enabled

If you receive an invitation to join a resource share, you must accept it to access its shared resources. If you decline the invitation, you can't access the shared resources.

For the following resource types you have seven days to accept the invitation to join the share for the following resource types. If you don't accept the invitation before it expires, the invitation is automatically declined.


For shared resource types not on the following list, you have 12 hours to accept the invitation to join the resource share. If you try to accept the invitation after 12 hours, RAM fails to process the invitation and the originating account must share the resources again to generate a new invitation.

  • Amazon Aurora – DB clusters

  • Amazon EC2 – capacity reservations and dedicated hosts

  • Amazon License Manager – License configurations

  • Amazon Outposts – Local gateway route tables, outposts, and sites

  • Amazon Route 53 – Forwarding rules

  • Amazon VPC – Customer-owned IPv4 addresses, prefix lists, subnets, traffic mirror targets, transit gateways, transit gateway multicast domains

To respond to an invitation to a resource share
  1. Navigate to the Shared with me : Resource shares page in the Amazon RAM console.

  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. Review the list of resource shares to which you have been added.

    The Status column indicates your current participation status for the resource share. The Pending status indicates that you have been added to a resource share, but you have not yet accepted or rejected the invitation.

  4. To respond to the resource share invitation, select the resource share ID and choose Accept resource share to accept the invitation, or Reject resource share to decline the invitation. If you reject the invitation, you don't get access to the resources. If you accept the invitation, you gain access to the resources.

Amazon CLI
To respond to an invitation to a resource share

You can use the following commands to accept or reject invitations to a resource share:

  1. The following example starts by using the get-resource-share-invitations command to retrieve a list of all of the invitations available to the user's Amazon Web Services account. The Amazon CLI query parameter lets you restrict the output to only those invitations with its status set to PENDING. This example shows one invitation from account 111111111111 is currently PENDING for the current account 123456789012 in the specified Amazon Web Services Region.

    $ aws ram get-resource-share-invitations \ --region us-east-1 \ --query 'resourceShareInvitations[?status==`PENDING`]' { "resourceShareInvitations": [ { "resourceShareInvitationArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share-invitation/3b3bc051-fbf6-4336-8377-06c559dfee49", "resourceShareName": "Test TrngAcct Resource Share", "resourceShareArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share/c4506c70-df75-4e6c-ac30-42ca03295a37", "senderAccountId": "111111111111", "receiverAccountId": "123456789012", "invitationTimestamp": "2021-09-21T08:56:24.977000-07:00", "status": "PENDING" } ] }
  2. After you find the invitation that you want to accept, make note of the resourceShareInvitationArn in the output to use in the next command to accept the invitation.

    $ aws ram accept-resource-share-invitation \ --region us-east-1 \ --resource-share-invitation-arn arn:aws-cn:ram:us-east-1:111111111111:resource-share-invitation/3b3bc051-fbf6-4336-8377-06c559dfee49 { "resourceShareInvitation": { "resourceShareInvitationArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share-invitation/3b3bc051-fbf6-4336-8377-06c559dfee49", "resourceShareName": "Test TrngAcct Resource Share", "resourceShareArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share/c4506c70-df75-4e6c-ac30-42ca03295a37", "senderAccountId": "111111111111", "receiverAccountId": "123456789012", "invitationTimestamp": "2021-09-21T09:18:24.545000-07:00", "status": "ACCEPTED" } }

    If successful, note that the response shows that the status has changed from PENDING to ACCEPTED.

If you instead wanted to reject the invitation, run the reject-resource-share-invitation command, with the same parameters.

$ aws ram reject-resource-share-invitation \ --region us-east-1 \ --resource-share-invitation-arn arn:aws-cn:ram:us-east-1:111111111111:resource-share-invitation/3b3bc051-fbf6-4336-8377-06c559dfee49 { "resourceShareInvitation": { "resourceShareInvitationArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share-invitation/3b3bc051-fbf6-4336-8377-06c559dfee49", "resourceShareName": "Test TrngAcct Resource Share", "resourceShareArn": "arn:aws-cn:ram:us-east-1:111111111111:resource-share/c4506c70-df75-4e6c-ac30-42ca03295a37", "senderAccountId": "111111111111", "receiverAccountId": "123456789012", "invitationTimestamp": "2021-09-21T09:18:24.545000-07:00", "status": "REJECTED" } }