IAM roles assumed by users, in eleven slides: what a role is, its trust policy and permissions policies, the forms of a Principal, a role in the IAM console, AssumeRole step by step and from the CLI, switching role in the console, the role session's permissions, how long a session lasts, STS behind the console, and access keys or roles. Roles assumed by AWS services come with EC2, in session 3.
The slides
The tool is eleven slides: an introduction, then three sections, listed on its left. Session 1 gave permissions to
users and groups; this lesson gives them to whoever assumes a role.
- 0. Introduction
- IAM roles: a role, and the sessions that are its principals.
- 1. A role
- A role: an identity to assume: the trust policy, the permissions policies, and the session.
- Naming a principal in a policy: the forms of the
Principal element. - A role in the IAM console: the trust policy, the maximum session duration and Revoke sessions.
- 2. Assuming a role
- AssumeRole, step by step: the caller, STS, and the service with IAM behind it.
- AssumeRole from the CLI: a real run, from the user to the role session, and its first denial.
- Switching role in the console: the Switch Role page and the account menu after it.
- The role session's permissions: the console's denial, naming the session.
- The length of a role session: from 15 minutes up to the role's maximum.
- 3. Roles and access keys
- STS behind the scenes: the console, CloudShell,
aws login and Switch Role. - Access keys or roles: which to use where.
The buttons on the left and right edges move between slides. So do the arrow keys and a swipe.
The lab
IAM Roles Lab practices it, and the identities and policies it builds on are in
IAM: Identities and Policies.
The demo identities
The CLI run is a real one of 2026-11-15; the console screenshots are from 2026-11-13. The users, the roles and the policies
in them were made for those runs and deleted after. The account ID is covered in the screenshots; in the text it is AWS's
placeholder (111122223333), and so are the keys.
Sources