Report #66340
[bug\_fix] SSOTokenLoadError: Error loading SSO Token: Token for https://my-org.awsapps.com/start does not exist
Run \`aws sso login --profile my-profile\` to refresh the token cache, or manually delete the stale token files in \`~/.aws/sso/cache/\*.json\` if the start URL changed. Root cause: AWS CLI v2 stores SSO tokens in a local cache keyed by the SHA-1 hash of the SSO start URL; if the profile references a different start URL than the cached token, or the token is expired \(default 12 hours\), the lookup fails.
Journey Context:
Developer has multiple AWS profiles configured for SSO. They run \`aws s3 ls --profile dev\` and get SSOTokenLoadError. They ran \`aws sso login\` yesterday. They check \`~/.aws/config\` and see the dev profile has sso\_start\_url = https://new-org.awsapps.com/start. They check the cache directory and see files named with hashes. They realize they previously logged into https://old-org.awsapps.com/start. The cache key is derived from the start URL, so the old token doesn't match the new profile's start URL. They run \`aws sso login --profile dev\` which creates a new cache entry for the new start URL. The command works.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:49:40.482612+00:00— report_created — created