Lesson 4 of 5 Identity Federation and Cross-Account Access

Choosing Directory Services for Hybrid Active Directory

This lesson explains the AWS Directory Service options for extending or replacing on-premises Microsoft Active Directory, on which many workloads moving to AWS depend, and how to choose between them.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish AWS Managed Microsoft AD, AD Connector, Simple AD and self-managed AD.
  • Explain trusts and directory sharing across accounts.
  • Design directory support for migrated Windows workloads.

Directory options

There are four ways to provide Active Directory to workloads in AWS. AWS Managed Microsoft AD runs real Microsoft AD domain controllers, managed by AWS in two Availability Zones. It suits AD-aware workloads in AWS, those needing domain join, Kerberos or group policy, FSx for Windows File Server and RDS for SQL Server, and it can trust an on-premises AD. AD Connector is a proxy that redirects authentication requests to the on-premises AD and stores no directory data. It suits users signing in to WorkSpaces, Identity Center or the console with existing credentials when the directory must stay on premises.

Simple AD is a Samba-based, AD-compatible directory for small, basic needs without trusts or advanced features. Self-managed AD on EC2 runs your own domain controllers when full control is required, such as schema extensions that Managed AD does not support. The following table summarises the options.

OptionWhat it isChoose when
AWS Managed Microsoft ADReal Microsoft AD domain controllers managed by AWS, deployed in two AZsAD-aware workloads in AWS (domain join, Kerberos, group policy, FSx for Windows, RDS SQL Server), optionally with a trust to on-premises AD
AD ConnectorA proxy that redirects requests to on-premises AD; stores no directory dataUsers should sign in to AWS services (WorkSpaces, Identity Center, console) with existing on-premises credentials, and AD must stay on premises
Simple ADA Samba-based, AD-compatible directorySmall, basic needs without trusts or advanced AD features
Self-managed AD on EC2Your own domain controllersFull control is required, such as schema extensions not supported in Managed AD

Trusts and multi-account use

A forest trust between AWS Managed Microsoft AD and the on-premises Active Directory lets on-premises users sign in to resources joined to the AWS domain, such as Windows servers and FSx file shares, without copying identities into AWS. Trusts can be one-way or two-way. A trust requires network connectivity between the domain controllers, over Direct Connect or VPN, and conditional DNS forwarding in both directions, so that each domain can resolve the other's names; AD Connector has the same network and DNS prerequisites.

In a multi-account organisation, one Managed Microsoft AD can be shared with other accounts, so their instances join the same domain without separate directories, which keeps one place to manage policies and accounts. The Enterprise Edition supports multi-Region replication, which adds domain controllers in other Regions for lower latency and disaster recovery, so workloads in a recovery Region can authenticate even if the primary Region is unavailable.

Worked example

Windows workloads after migration

A company is migrating 300 Windows servers, SQL Server databases and departmental file shares. On-premises AD will remain the source of truth for users for at least two years. The architect deploys AWS Managed Microsoft AD in the shared-services account, shares it with workload accounts, and creates a two-way forest trust with the on-premises forest over Direct Connect. Route 53 Resolver rules forward the on-premises domain's DNS queries, and the on-premises DNS servers conditionally forward the AWS domain to the Managed AD domain controllers.

Migrated servers join the AWS domain and keep working with on-premises user accounts through the trust; FSx for Windows File Server and RDS for SQL Server join the same managed domain. AD Connector would not suffice, because it cannot host computer objects for the migrated servers, and running domain controllers on EC2 would add patching and backup work that the managed service removes.

Check yourself

How can users sign in to AWS-hosted Windows workloads with their existing on-premises accounts while the directory runs in AWS?

Show answer

With a trust between AWS Managed Microsoft AD and the on-premises Active Directory forest over a private network connection.

Exam Tips

Remember for the exam

  • For AD-aware workloads in AWS with a trust to on-premises AD, use AWS Managed Microsoft AD.
  • To let users sign in to AWS services with on-premises AD credentials without storing directory data in AWS, use AD Connector.
  • FSx for Windows File Server and RDS for SQL Server integrate with Managed Microsoft AD.
  • To use one managed directory from many accounts, share it with directory sharing.
  • Trusts need network connectivity and conditional DNS forwarding between the domains.