Report #98714
[bug\_fix] AWS SSO token has expired. Re-run \`aws sso login\`
Run \`aws sso login --profile \` to refresh the temporary SSO credentials. The root cause is that AWS SSO issues short-lived credentials cached in \`~/.aws/sso/cache/\`; once they expire, every SDK call returns an expired-token error even though the SSO session itself may still be valid in the browser.
Journey Context:
A CI script that had been working for weeks suddenly started failing on local developer laptops with 'Token has expired'. The team first checked \`~/.aws/credentials\`, but it was empty because they use AWS SSO. They ran \`aws sts get-caller-identity --profile dev\` and got the same expired-token message. After digging through \`~/.aws/sso/cache/\`, they noticed the JSON token file had an \`expiresAt\` timestamp in the past. Logging into the AWS SSO portal in the browser did not help, because the SDK still reads the stale cached token. The fix was to run \`aws sso login --profile dev\`, which wrote a fresh token file and restored access.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:39:28.506017+00:00— report_created — created