Lesson 4 of 4 Amazon Cognito and IAM Identity Center

Using Microsoft Active Directory with AWS Directory Service

This lesson explains how AWS Directory Service provides Microsoft Active Directory in AWS, or connects AWS to an existing on-premises directory, for workloads and services that depend on it.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish AWS Managed Microsoft AD, AD Connector and Simple AD.
  • Choose between AD Connector and AWS Managed Microsoft AD.
  • Identify the network requirements of a directory.

Directory options

AWS Directory Service offers three ways to use Microsoft Active Directory (AD) with AWS. AWS Managed Microsoft AD is a real Active Directory run by AWS, with domain controllers in at least two Availability Zones. It can trust an on-premises AD, so users sign in with their existing accounts, and can be replicated to other Regions. Services that require AD, such as FSx for Windows File Server, RDS for SQL Server with Windows authentication, WorkSpaces and domain-joined EC2 instances, use it.

AD Connector is a proxy that forwards authentication requests to an on-premises AD. Nothing is cached or stored in AWS, which suits organisations that want AWS services to use existing identities without copying the directory, but it depends on the connection to on premises. Simple AD is a basic, Samba-based directory compatible with AD, for small, simple needs; it does not support trusts with other directories. The following table summarises the options.

OptionWhat it isUse for
AWS Managed Microsoft ADReal AD with domain controllers in two or more AZs; trusts with on-premises AD; multi-Region replicationFSx for Windows, RDS for SQL Server, WorkSpaces, EC2 domain join, Identity Center
AD ConnectorA proxy to on-premises AD; nothing is cached or stored in AWSUsing existing on-premises identities with AWS services
Simple ADA basic Samba-based, AD-compatible directorySmall, simple needs without trusts

The following diagram shows how each option relates to an on-premises directory.

How the three AWS Directory Service options relate to an on-premises Active Directory. AWS Managed Microsoft AD is a real directory in AWS with domain controllers in two Availability Zones, which can trust the on-premises directory. AD Connector stores nothing and forwards authentication requests to the on-premises directory. Simple AD is a standalone, basic directory with no trusts.
Only AWS Managed Microsoft AD keeps a directory in AWS that can trust the on-premises one; AD Connector keeps nothing in AWS.

Choosing between them

AD Connector and AWS Managed Microsoft AD differ mainly in their dependence on the on-premises directory. AD Connector is a proxy that forwards authentication requests to on-premises Active Directory; it stores no directory data, so if the network link to the data centre fails, sign-ins fail too.

AWS Managed Microsoft AD is a real Active Directory running in AWS. It keeps working if the link fails, and it supports a two-way trust with on-premises AD, so on-premises users can reach AWS resources and the reverse. Only Managed Microsoft AD supports schema extensions, multi-Region replication and the many AD-aware AWS services, such as Amazon FSx for Windows File Server and Amazon RDS for SQL Server with Windows authentication.

Scenario questions

Choosing a directory

Exam skills 1.1.6 · 2.2.7

Choose the Directory Service option for each requirement.

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

Network requirements

Directories run in two subnets of a VPC. Connecting to on premises needs a VPN or Direct Connect, with DNS forwarding (for example Route 53 Resolver endpoints) so each side resolves the other's domain.

Worked example

Windows workloads moving to AWS

A company moves Windows file servers and SQL Server to AWS. Users must keep signing in with their on-premises Active Directory accounts, and the workloads must keep working if the link to the data centre fails.

OptionOutcome
AD ConnectorSimple, but every sign-in goes to on premises: a link failure stops authentication
AWS Managed Microsoft AD with a two-way trust to on-premises ADDomain controllers run in AWS; existing users are trusted; workloads keep working if the link fails

Managed Microsoft AD is chosen, joined by FSx for Windows File Server and RDS for SQL Server. Route 53 Resolver endpoints forward DNS for each domain in both directions.

Check yourself

When is AD Connector a better fit than AWS Managed Microsoft AD?

Show answer

When users should stay in the existing on-premises Active Directory. AD Connector forwards authentication requests to it and stores no directory data in AWS.

Exam Tips

Remember for the exam

  • When you need Active Directory in AWS with a trust to on-premises Active Directory, use AWS Managed Microsoft AD.
  • To authenticate against on-premises Active Directory without storing anything in AWS, use AD Connector.
  • FSx for Windows File Server and RDS for SQL Server with Windows authentication need Managed Microsoft AD (or self-managed AD).
  • For a small directory without trusts at the lowest cost, use Simple AD.