

# Sharing an Amazon Cloud Map namespace
<a name="sharing-share"></a>

 When you share an Amazon Cloud Map namespace that you own with other Amazon Web Services accounts (consumers), you enable these accounts to discover the up-to-date network locations of services in the namespace without the need for temporary credentials.

To share a namespace, you must add it to a resource share. A resource share is an Amazon RAM resource that lets you share your resources across Amazon Web Services accounts. A resource share specifies the resources to share, and the consumers with whom they are shared. To add the namespace to a new resource share, you must first create the resource share using the [Amazon RAM console](https://console.amazonaws.cn/ram).

If you are part of an organization in Amazon Organizations and sharing within your organization is enabled, consumers in your organization are automatically granted access to the shared namespace. Otherwise, consumers receive an invitation to join the resource share and are granted access to the shared namespace after accepting the invitation.

You can share a namespace that you own using the Amazon RAM console or the Amazon CLI.

------
#### [ Amazon RAM console ]

**To share a namespace that you own using the Amazon RAM console**  
See [Creating a resource share in Amazon RAM](https://docs.amazonaws.cn/ram/latest/userguide/working-with-sharing-create.html) in the *Amazon RAM User Guide*.

------
#### [ Amazon CLI ]

**To share a namespace that you own using the Amazon CLI**  
Use the Amazon RAM [create-resource-share](https://docs.amazonaws.cn/cli/latest/reference/ram/create-resource-share.html) command.

------