0PricingLogin
AWS Security Academy · Lesson

AssumeRole and the Session Lifetime

Learn how a principal trades its identity for role permissions.

Trading Identity for Permissions

The AssumeRole operation lets a principal temporarily exchange its own identity for a role's permissions. The result is a time-bounded session. Controlling how long that session lasts, and how its permissions are scoped, is a frequent SCS-C02 topic because session lifetime directly affects security exposure.

The Assumed-Role Session

After AssumeRole succeeds, the caller operates as an assumed-role session, identified by an ARN like arn:aws:sts::ACCOUNT:assumed-role/RoleName/SessionName. For the duration, the caller has the role's permissions and not their original ones. The session name you pass is preserved for auditing.

All lessons in this course

  1. How STS Issues Temporary Credentials
  2. AssumeRole and the Session Lifetime
  3. External ID and the Confused Deputy
  4. Session Policies and Tag-Based Scoping
← Back to AWS Security Academy