Lesson 4 of 6 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 Identity Center, the console or domain-joined EC2 instances 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 (Identity Center, console, EC2 Windows) 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
Sort into groups

Which directory option?

Exam skills 2.1.1

Choose the directory option for each requirement.

Log in to try this activity Interactive activities are free with an account.

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.

The following diagram shows a forest trust between on-premises Active Directory and AWS Managed Microsoft AD, shared with workload accounts.

A hybrid Active Directory design. AWS Managed Microsoft AD runs in a shared-services account and has a two-way forest trust with the on-premises forest over Direct Connect or VPN. DNS forwarding works in both directions: Route 53 Resolver rules forward the on-premises domain, and on-premises DNS servers forward the AWS domain. The directory is shared with workload accounts, whose Windows servers, FSx file systems and RDS for SQL Server instances join the managed domain.
Both the trust and AD Connector need the same network path and DNS forwarding in both directions.
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.