Skill 1.1.6

Determining when to federate a directory service with IAM roles

Key Concepts

With federation, an identity provider (IdP) authenticates the user and AWS trusts the IdP to issue temporary credentials for an IAM role. IAM Identity Center is the recommended approach for workforce access to many accounts and applications: connect it to Microsoft Entra ID, Okta or another SAML 2.0 IdP (with SCIM user provisioning), to on-premises Active Directory through AWS Managed Microsoft AD or AD Connector, or use its own directory. Permission sets become roles in each account.

For a single account you can also create a SAML 2.0 identity provider in IAM and map IdP groups to roles. AWS Directory Service offers AWS Managed Microsoft AD (a real AD in AWS, can trust on-premises AD), AD Connector (a proxy to on-premises AD, nothing stored in AWS) and Simple AD.

For customers of your application (not employees), use Amazon Cognito: user pools authenticate users (including social and SAML IdPs) and identity pools exchange tokens for temporary AWS credentials through roles.