Specify the Maximum Session Duration of an IAM Role on AWS
Perform the following steps to specify the maximum session duration for a role on AWS:
-
Sign in to the AWS Management Console.
-
Once signed in, navigate to the IAM (Identity and Access Management) service by searching for "IAM" in the AWS Management Console search bar and selecting the IAM service.
-
In the IAM console, click Roles in the left-hand navigation pane. Locate the IAM role you want to modify and click on its name to access its details. For example, AWS App Role.
-
In the Role Summary page, scroll down to the Permissions tab and click Edit button next to Maximum CLI/API session duration.
-
In the dialog box that appears, enter 43,200 seconds as the desired maximum session duration.
-
After entering the new session duration, click Save Changes to apply the updated settings to the IAM role.