Re:AWS IAM Policies in a Nutshell
by andrewguenther on Friday March 24, 2017 @01:53AM
(#13946970)
This is where users come in. You should be setting up users other than the root user which have significantly fewer permissions. We essentially use our root user to set up the account and then throw away the MFA key (not really, but you get the idea).
This allows you to use your company's own identity provider instead of IAM users (or in conjunction with). In this scenario, users access the console by assuming a role. You essentially say "Users within this Active Directory group are allowed to access the console by assuming this role."
As for roles themselves in the console, those become useful when you're using federation: https://aws.amazon.com/iam/details/manage-federation/
This allows you to use your company's own identity provider instead of IAM users (or in conjunction with). In this scenario, users access the console by assuming a role. You essentially say "Users within this Active Directory group are allowed to access the console by assuming this role."
This process uses Active Directory to communicate with STS to give you a temporary token allowing you to assume the role: http://docs.aws.amazon.com/STS/latest/APIReference/API_Assum...
The diagram on this page provides a nice overview of how that all ends up working: https://aws.amazon.com/code/4001165270590826