0Pricing
AWS Security Academy · Lesson

Session Policies and Tag-Based Scoping

Shrink permissions further at the moment a role is assumed.

Narrowing at Assume Time

Sometimes you want to grant a role but restrict what a particular session can do without editing the role itself. Session policies and session tags let you shrink permissions at the exact moment a role is assumed. These advanced STS features support fine-grained, scalable least privilege that the exam rewards.

What a Session Policy Is

A session policy is an inline or managed policy passed to AssumeRole (via Policy or PolicyArns). It does not grant new permissions; it can only filter the role's existing permissions for that session. The effective permissions are the intersection of the role's policies and the session policy.

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