How long should role sessions last?
BeginnerProductionIAM Best Practices
Answer
As short as practical. Defaults are 1 hour for assumed roles; the max session duration can be set from 1 to 12 hours per role. We keep admin sessions at 1 hour, developer sessions at 4 to 8 hours for usability, and CI sessions at the length of the job. Role chaining caps the session at 1 hour regardless. If a session is compromised, revoke with the console's "Revoke active sessions", which adds a deny on tokens issued before now.
More on IAM Best Practices
What does least privilege look like in practice, not in theory?BeginnerWhat are the IAM rules you enforce for humans?BeginnerHow do you design Identity Center permission sets for many teams?IntermediateHow does ABAC with Identity Center work, and when is it worth it?AdvancedWhen do you use permission boundaries in production?IntermediateHow do you remove long-lived access keys from an existing estate?Intermediate