-
Notifications
You must be signed in to change notification settings - Fork 4.7k
aws login - no refresh? #10628
Copy link
Copy link
Open
Labels
bugThis issue is a bug.This issue is a bug.documentationThis is a problem with documentation.This is a problem with documentation.investigatingThis issue is being investigated and/or work is in progress to resolve the issue.This issue is being investigated and/or work is in progress to resolve the issue.loginp3This is a minor priority issueThis is a minor priority issue
Description
Activity
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.documentationThis is a problem with documentation.This is a problem with documentation.investigatingThis issue is being investigated and/or work is in progress to resolve the issue.This issue is being investigated and/or work is in progress to resolve the issue.loginp3This is a minor priority issueThis is a minor priority issue
Describe the bug
The documentation of
aws loginclaims that the tokens will be automatically refreshed:logincommand is called, the CLI will acquire temporary credentials and a refresh token that correspond to your selected console session. The CLI will refresh the temporary credentials automatically as long as the refresh token is valid." (https://docs.aws.amazon.com/cli/latest/reference/login/#description)aws loginagain." (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sign-in.html#cli-configure-sign-in-with-profile)However, it is unclear to me how that automatic refresh is happening. There is no systemd user service or even a background process, as far as I can see, that could accomplish this.
The resulting effect I see is that the tokens expire constantly, every few minutes (<<1h) I have to run
aws loginagain.Regression Issue
Expected Behavior
Current Behavior
aws loginagain.Reproduction Steps
aws login, wait for significantly less than 1h, run anawscommand, notice that tokens are expired, runaws loginagain, repeatPossible Solution
Both should provided:
Additional Information/Context
No response
CLI version used
aws-cli/2.36.0 Python/3.14.6 Linux/7.1.6-201.fc44.x86_64 source/x86_64.fedora.44
Environment details (OS name and version, etc.)
aws-cli/2.36.0 Python/3.14.6 Linux/7.1.6-201.fc44.x86_64 source/x86_64.fedora.44