AWS Sign-In Duration Up to 90 Days: Useful for Agents, Risky if Set Wide
On 23 November AWS announced that administrators can set a Sign-in duration of up to 90 days for individual IAM users and roles. The thing it applies to is easy to misread, so let me be precise. This is from the announc
On 23 November AWS announced that administrators can set a Sign-in duration of up to 90 days for individual IAM users and roles. The thing it applies to is easy to misread, so let me be precise.
This is from the announcement only.
What it controls
It sets how long an OAuth sign-in session stays active. That is the session behind aws login in the AWS CLI, the AWS MCP Server and other OAuth-enabled applications.
It does not affect AWS Management Console sessions. The post says that explicitly. Existing session limits stay as they are unless an administrator configures something longer.
You can configure it through the IAM console, the AWS CLI or the IAM API, and it is available in all commercial Regions. The default and minimum values are not stated in the post. AWS links the Sign-In session management guide and a "Configure Sign-In duration on Role" page, which I have not read.
Why AWS is doing this
The stated reasoning is fewer re-authentication and consent prompts for long-running workflows, and a safer alternative to static access keys, because credentials are short-lived and renewable.
I think that is the real point. Anyone who has watched an agent or a long local job stall on an expired login knows the temptation to create an access key "just for this". A longer sign-in session removes some of that pressure.
The trade-off
Ninety days is a long time. A stolen refresh credential is useful to an attacker for as long as the session lives. So I would not set it broadly.
What I'd do:
- Leave the default for humans with broad permissions.
- Allow longer durations only on narrowly scoped roles used by agents or long-running tooling.
- Check the Sign-In condition keys the post links to, and see whether you can restrict who may configure long durations at all.
- Audit your existing static access keys. Each one you can replace with this is a win.
The question I would want answered before rollout: how do you revoke a 90-day session quickly if a laptop is lost? The announcement does not say, so read the session management guide for that.
Sources
Drafted with AI assistance. I review and edit every post.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.