Interview Prep/AWS/Global Infrastructure and IAM Basics

What is the difference between an IAM user, group and role?

BeginnerConceptGlobal Infrastructure and IAM Basics
Answer

A user is a long-lived identity with a password and/or access keys. A group is just a collection of users to attach policies to; groups cannot be principals and cannot be nested. A role has no credentials of its own: it is assumed by a principal (a user, AWS service, another account, a federated identity) and yields temporary credentials through STS.

Modern practice: humans sign in through IAM Identity Center, workloads use roles, and IAM users are the exception.

aws All AWS questions Roadmap: AWS core services

More on Global Infrastructure and IAM Basics