Report #9259
[bug\_fix] ExpiredToken: The security token included in the request is expired when using AWS SSO credentials
Run \`aws sso login --profile \` to refresh the SSO token cache, or implement an SSO token provider that auto-refreshes before the 8-hour expiration.
Journey Context:
Developer runs a local data pipeline that uploads files to S3. The script worked yesterday but now throws 'ExpiredToken'. They check \`aws configure list\` and see the profile is using SSO. They check \`~/.aws/sso/cache/\` and see the token file has a timestamp from three days ago. They realize the SSO session expired because they only ran \`aws sso login\` last week and the session lasts 8-12 hours. They run \`aws sso login --profile my-sso-profile\`, re-authenticate in the browser, and the script works again. The fix works because the AWS CLI updates the cached SSO token with a new access token valid for another 8-12 hours.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:43:53.675544+00:00— report_created — created