

# Share your Amazon Managed Microsoft AD
<a name="ms_ad_directory_sharing"></a>

Amazon Managed Microsoft AD integrates tightly with Amazon Organizations to allow seamless directory sharing across multiple Amazon Web Services accounts. You can share a single directory with other trusted Amazon Web Services accounts within the same organization or share the directory with other Amazon Web Services accounts that are outside your organization. You can also share your directory when your Amazon Web Services account is not currently a member of an organization. 

## Key directory sharing concepts
<a name="ms_ad_directory_sharing_key_concepts"></a>

You will get more out of the directory sharing feature if you become familiar with the following key concepts.

![\[Two Amazon Managed Microsoft AD with directory sharing, domain joins, and Amazon VPC peering.\]](http://docs.amazonaws.cn/en_us/directoryservice/latest/admin-guide/images/directory_sharing_concepts.png)


### Directory owner account
<a name="directory_owner"></a>

A directory owner is the Amazon Web Services account holder that owns the originating directory in the shared directory relationship. An administrator in this account initiates the directory sharing workflow by specifying which Amazon Web Services accounts to share their directory with. Directory owners can see who they've shared a directory with using the **Scale & Share** tab for a given directory in the Amazon Directory Service console.

### Directory consumer account
<a name="directory_owner"></a>

In a shared directory relationship, a directory consumer represents the Amazon Web Services account to which the directory owner shared the directory with. Depending on the sharing method used, an administrator in this account may need to accept an invite sent from the directory owner before they can start using the shared directory.

The directory sharing process creates a shared directory in the directory consumer account. This shared directory contains the metadata that enables the EC2 instance to seamlessly join the domain, which locates the originating directory in the directory owner account. Each shared directory in the directory consumer account has a unique identifier (**Shared directory ID**). 

### Sharing methods
<a name="sharing_methods"></a>

Amazon Managed Microsoft AD provides the following two directory sharing methods:
+ **Amazon Organizations** – This method makes it easier to share the directory within your organization because you can browse and validate the directory consumer accounts. To use this option, your organization must have **All features** enabled, and your directory must be in the organization management account. This method of sharing simplifies your setup because it doesn't require the directory consumer accounts to accept your directory sharing request. In the console, this method is referred to as **Share this directory with Amazon Web Services accounts inside your organization**.
+ **Handshake** – This method enables directory sharing when you aren't using Amazon Organizations. The handshake method requires the directory consumer account to accept the directory sharing request. In the console, this method is referred to as **Share this directory with other Amazon Web Services accounts**.

### Network connectivity
<a name="network_connectivity"></a>

Network connectivity is a prerequisite to use a directory sharing relationship across Amazon Web Services accounts. Amazon supports many solutions to connect your VPCs, some of these include [VPC peering](https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html), [Transit Gateway](https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html), and [VPN](https://docs.aws.amazon.com/vpc/latest/adminguide/Welcome.html). To get started, see [Tutorial: Sharing your Amazon Managed Microsoft AD directory for seamless EC2 domain-join](ms_ad_tutorial_directory_sharing.md).

## Considerations
<a name="ms_ad_directory_sharing_considerations"></a>

The following are some considerations when using directory share with your Amazon Managed Microsoft AD:

**Pricing**
+ Amazon charges an additional fee for directory sharing. The Amazon Web Services account that is using the shared Amazon Managed Microsoft AD is the account charged the sharing fees. To learn more, see the [Pricing](http://www.amazonaws.cn/directoryservice/pricing/) page on the Amazon Directory Service website.
+ Directory sharing makes Amazon Managed Microsoft AD a more cost-effective way of integrating with Amazon EC2 in multiple accounts and VPCs.

**Region availability**
+ Directory sharing is available in all [Amazon regions where Amazon Managed Microsoft AD](regions.md) is offered.
+ In the Amazon China (Ningxia), this feature is available only when using [Amazon Systems Manager](http://www.amazonaws.cn/systems-manager/) (SSM) to seamlessly join your Amazon EC2 instances.

For more information about directory sharing and how to extend the reach of your Amazon Managed Microsoft AD directory across Amazon account boundaries, see the following topics.

**Topics**
+ [Key directory sharing concepts](#ms_ad_directory_sharing_key_concepts)
+ [Considerations](#ms_ad_directory_sharing_considerations)
+ [Tutorial: Sharing your Amazon Managed Microsoft AD directory for seamless EC2 domain-join](ms_ad_tutorial_directory_sharing.md)
+ [Unsharing your directory](ms_ad_directory_sharing_unshare.md)

**Additional resources**
+ [Use case: Share your directory to seamlessly join amazon EC2 instances to a domain across Amazon accounts](https://docs.amazonaws.cn/directoryservice/latest/admin-guide/usecase6.html)
+ [Amazon security blog article: How to join Amazon EC2 instances from multiple accounts and VPCs to a single Amazon Managed Microsoft AD directory](http://www.amazonaws.cn/blogs/security/how-to-domain-join-amazon-ec2-instances-aws-managed-microsoft-ad-directory-multiple-accounts-vpcs/)
+ [Joining your Amazon RDS DB instances across accounts to a single shared domain](http://www.amazonaws.cn/blogs/database/joining-your-amazon-rds-instances-across-accounts-to-a-single-shared-domain/)