1 Answer
- Newest
- Most votes
- Most comments
1
There is currently no way to force this for an assume-role call.
You can set the maximum session duration for a role, but not lower than 1h.
There is no IAM condition key that allows you to force this either
--max-session-duration (integer)
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Relevant content
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago