- Newest
- Most votes
- Most comments
Sure, you can customize the session timeout duration for active sessions only in AWS Console using IAM or AWS CLI. Just set the "SessionDuration" parameter to a value lower than the maximum session duration for your IAM role to allow longer active sessions.
Hello,
Greetings of the day.
Thank you for reaching out with your concern in AWS re:Post.
I Understand that you would like to know if there is a way to adjust this time for active sessions only.
I would like to inform you that regarding AWS Console sessions initiated by IAM users or the root account, unfortunately, there is no way to customise a session timeout at this moment; a login session will expire in 12 hours when you sign into the AWS Management Console with your AWS or IAM account credentials [1].
However, when your IAM users assume IAM roles from AWS Console, it is possible to customise the session timeout for each role [2]; the session duration for IAM roles can be set from 15 minutes to 12 hours [3].
I hope the above information is helpful to you.
Thank you and have a great day ahead.
Reference:-
[1] AWS Web Console FAQ https://aws.amazon.com/console/faqs/#session_expire
[2] Modifying a role (console) - Modifying a role maximum session duration (console) https://docs.aws.amazon.com/IAM/latest/UserGuide/roles-managingrole-editing-console.html#roles-modify_max-session-duration
[3] Using IAM roles https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
Relevant content
- asked 5 years ago
- Accepted Answerasked 9 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago