AWSCloud Visual Academy

Comparison lab

IAM vs IAM Identity Center vs Amazon Cognito

IAM grants AWS permissions, Identity Center signs in the workforce, Cognito signs in customers.

All comparisons

Picture the difference

Workload permissions → IAM role | Employee sign-in → IAM Identity Center portal | Customer sign-in → Cognito user pool

OptionWhat it doesExam clueWhen not to use it
AWS Identity and Access Management (IAM)Core AWS authorization service for managing identities, roles, and policies controlling access to AWS resources.roles, policies, least privilege, explicit deny, temporary credentialsDo not create long-lived keys for a workload that can assume a role or treat a policy as a sign-in system for consumer app users.
AWS IAM Identity CenterCentral workforce access service for AWS accounts and supported applications.workforce, single sign-on, permission sets, identity provider, access portalDo not use it as the customer identity system for a public mobile app or as a replacement for workload roles.
Amazon CognitoManaged identity features for signing users into web and mobile applications and granting applications scoped AWS access.user pools, identity pools, application users, tokens, federationFor employees signing into many AWS accounts, use workforce access management rather than creating a consumer user pool.

Decision tree

  1. Grant a user or workload AWS resource permissions using policies and roles AWS Identity and Access Management (IAM)
  2. Give employees federated access to multiple AWS accounts using permission sets AWS IAM Identity Center
  3. Add sign-up and sign-in for users of a web or mobile application Amazon Cognito

If none of these clues fit, check the exact requirement before choosing.