Interview Prep/AWS/IAM Advanced, STS and Multi-Account

What is the maximum session duration of a role and how do you change it?

BeginnerConceptIAM Advanced, STS and Multi-Account
Answer

Default 1 hour, configurable from 1 hour to 12 hours per role. A caller can request any duration from 15 minutes up to that cap. Role chaining is hard-capped at 1 hour, and console role switching also respects the role's max.

aws iam update-role --role-name deploy --max-session-duration 7200
aws All AWS questions Roadmap: AWS core services

More on IAM Advanced, STS and Multi-Account