Connecting AWS to Active Directory with AWS Directory Service
This lesson explains how AWS Directory Service connects AWS to Microsoft Active Directory, where many organisations keep their workforce identities, either by running a managed directory in AWS or by proxying to the on-premises one.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish AWS Managed Microsoft AD, AD Connector and Simple AD.
- Describe security considerations such as one-way trusts.
- Explain how a directory serves as the identity source for IAM Identity Center.
Directory options
AWS Directory Service offers three ways to use Active Directory (AD). AWS Managed Microsoft AD is a real Microsoft AD run by AWS across two Availability Zones. It can trust an on-premises AD, and it suits AD-aware workloads in AWS, such as domain-joined Windows instances, FSx for Windows File Server and RDS for SQL Server with Windows authentication. AD Connector is a proxy: it forwards authentication requests to your on-premises AD and stores no directory data in AWS. It suits cases where users must sign in to AWS services with existing credentials and the directory must stay on premises, and it needs network connectivity, DNS and a service account.
Simple AD is a basic, Samba-based directory compatible with some AD features, for small and simple needs. The following table summarises the options.
| Option | What it is | Choose when |
|---|---|---|
| AWS Managed Microsoft AD | A real AD in AWS, in two AZs; can trust on-premises AD | AD-aware workloads in AWS, such as domain-joined Windows, FSx for Windows and RDS for SQL Server |
| AD Connector | A proxy forwarding authentication to on-premises AD, storing no directory data; needs connectivity, DNS and a service account | Users sign in to AWS services with existing credentials and AD must stay on premises |
| Simple AD | A basic Samba-based directory | Small, basic needs |
Which directory option?
Security considerations
Directory deployments have several security considerations. The following list describes them.
- Trusts between Managed Microsoft AD and on-premises AD should be one-way where possible, granting only the access needed.
- Security groups on the directory's domain controllers limit which networks can reach them.
- Directory logs can be forwarded to CloudWatch Logs for monitoring sign-in activity.
- MFA can be added for directory users through a RADIUS server.
Securing directories
Directory Service and Identity Center
IAM Identity Center can use Managed Microsoft AD or AD Connector as its identity source, so users sign in to AWS accounts and applications with their directory credentials and groups. For organisations with an external identity provider such as Entra ID or Okta, connecting Identity Center directly with SAML and SCIM is usually simpler.
The following diagram shows the path of an authentication request when AWS sign-in uses on-premises Active Directory through AD Connector.

AWS sign-in with on-premises Active Directory
A company wants staff to sign in to AWS accounts with their existing Active Directory credentials, and policy forbids copying directory data into the cloud. The team deploys AD Connector in two private subnets with connectivity to the domain controllers:
aws ds connect-directory --name corp.example.com --short-name CORP --size Small \
--password "$SERVICE_ACCOUNT_PASSWORD" \
--connect-settings VpcId=vpc-0id,SubnetIds=subnet-0a,subnet-0b,CustomerDnsIps=10.0.0.10,10.0.0.11,CustomerUserName=svc-adconnectorIAM Identity Center uses the connector as its identity source, and permission sets are assigned to AD groups. Authentication requests are forwarded to on-premises AD, so disabling a user there removes their AWS access immediately. Managed Microsoft AD would be needed only if workloads in AWS had to join a domain.
Which option uses on-premises Active Directory credentials without copying the directory to AWS?
Show answer
AD Connector.
Exam Tips
Remember for the exam
- To use on-premises Active Directory credentials without copying the directory to AWS, use AD Connector.
- For AD-aware workloads in AWS with a trust to on-premises AD, use AWS Managed Microsoft AD.
- Prefer one-way trusts that grant only the access needed.
- Add MFA for directory users through RADIUS.
- Identity Center can use Managed Microsoft AD or AD Connector as its identity source.