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:

  1. Sign in to the AWS Management Console.

  2. 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.

  3. In the IAM console, click Roles in the left-hand navigation pane. Locate the IAM role you want to modify and click its name to access its details. For example, aviatrix-role-app or customer defined app role.

  4. In the Role Summary page, scroll down to the Permissions tab and click Edit button next to Maximum CLI/API session duration.

  5. In the dialog box that appears, enter 43,200 seconds as the desired maximum session duration.

  6. After entering the new session duration, click Save Changes to apply the updated settings to the IAM role.