17) Advanced Identity
AWS Security Token Service (STS)
Core Capabilities:
- Generates short-term, temporary credentials with limited privilege scopes to access AWS resources.
- Supports configurable expiration periods for all issued credentials.
- Minimizes security exposure compared to long-term identity credentials.
Primary Use Cases:
- Identity Federation:
- Allows user identities maintained within external identity management systems to access AWS resources.
- External identities are issued temporary STS security tokens upon successful authentication.
- IAM Roles for Cross-Account and Same-Account Access:
- Grants trusted entities permissions to assume an IAM role either inside the host account or across distinct AWS accounts.
- IAM Roles for Amazon EC2:
- Provides temporary credentials directly to Amazon EC2 instances to communicate securely with AWS APIs and resources without embedding access keys inside instance metadata or configuration files.
STS Role Assumption Architecture:
- A requesting entity (User or Service) initiates an
assume rolecall to the AWS STS service. - STS authenticates the request and generates temporary security credentials.
- The temporary credentials allow the identity to adopt the target IAM role and access AWS resources.
- A requesting entity (User or Service) initiates an

Amazon Cognito
Overview and Target Audience:
- Provides dedicated authentication, authorization, and user management for customer-facing web and mobile applications.
- Scalable to handle identities for up to millions of users.
- Eliminates the need to generate dedicated AWS IAM users for external application customers.
Key Architectural Components:
- Database of Users:
- Managed user directory hosted directly within Amazon Cognito to register, store, and authenticate application end-users.
- Social Identity Federation:
- Integrates with public Social Identity Providers, allowing end-users to authenticate using external social accounts such as Google, Facebook, and Twitter.
- Client Support:
- Handles direct login workflows and authentication tokens for both mobile applications and web client applications.

Microsoft Active Directory (AD) Fundamentals
Definition and Structure:
- Native directory service operating on Windows Server platforms equipped with Active Directory Domain Services (AD DS).
- Functions as an object database containing:
- User Accounts
- Computers
- Printers
- File Shares
- Security Groups
Operational Benefits:
- Centralized Security Management:
- Serves as a single authority for enterprise user management, account provisioning, and access permission assignment.
- Domain Controllers:
- Dedicated servers hosting Active Directory Domain Services that validate user credentials (such as username and password combinations) and grant network-wide access.

AWS Directory Services
AWS Managed Microsoft AD:
- Fully managed, native Microsoft Active Directory running on AWS infrastructure.
- Enables local user and object management within the cloud environment.
- Native support for Multi-Factor Authentication (MFA).
- Supports the establishment of standard "trust" relationships with existing on-premises Active Directory environments.
AD Connector:
- Serves as a directory gateway and proxy mechanism that forwards directory requests directly to an existing on-premises Microsoft Active Directory.
- Avoids directory synchronization and does not replicate user databases into the cloud; all user administration stays in the on-premises AD.
- Fully compatible with Multi-Factor Authentication (MFA) via on-premises RADIUS endpoints.
Simple AD:
- A managed, standalone directory service powered by Samba 4 that offers Active Directory compatibility on AWS.
- Designed for basic directory lookup and domain join capabilities without requiring full Microsoft licensing.
- Cannot be joined with an on-premises Active Directory and cannot form trust relationships.

AWS IAM Identity Center
Service Overview:
- Successor service to AWS Single Sign-On (AWS SSO).
- Delivers a unified single sign-on experience across multiple environments and accounts from a central web portal.
Supported Integrations:
- Multi-account management across AWS Organizations.
- Third-party business cloud applications, including Salesforce, Box, and Microsoft 365.
- External Security Assertion Markup Language (SAML 2.0)-compatible applications.
- Administrative sign-in access for Amazon EC2 Windows Instances.
Identity Provider Options:
- Built-in internal identity store residing directly within AWS IAM Identity Center.
- Integration with external enterprise identity providers, including Microsoft Active Directory (AD), OneLogin, and Okta.
User Login Flow:
- The user accesses the centralized AWS sign-in portal via a standard authentication prompt.
- After credential verification, the portal displays assigned AWS Organizations accounts (such as
AWS Courses #783746093452,datacumulus-main #387374203361,St e9phane MAAREK #160803648315, orstephane-ccp #855174973723). - The user selects their assigned permission profile (e.g.,
AdministratorAccess) to launch either the AWS Management Console directly or generate credentials for programmatic command-line interface (CLI) access.

Advanced Identity Services Comparison and Summary
AWS IAM:
- Manages identity and access policies locally inside a single AWS account.
- Best suited for trusted internal employees, systems, and entities that directly belong to the host company.
AWS Organizations:
- Centralizes governance, billing, and policy enforcement across multiple AWS accounts.
AWS Security Token Service (STS):
- Issues short-term, temporary credentials with specific permission scopes for accessing AWS resources.
Amazon Cognito:
- Provides dedicated user directory management and identity federation for external web and mobile application audiences.
AWS Directory Services:
- Integrates enterprise Microsoft Active Directory implementations with native AWS cloud resources and applications.
AWS IAM Identity Center:
- Provides centralized single sign-on access across multiple accounts in AWS Organizations and external business SaaS applications.