Interview Prep/AWS/IAM Best Practices

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.

aws All AWS questions Roadmap: AWS core services

More on IAM Best Practices