aws
auth_error
ai_generated
true
An error occurred (ExpiredTokenException): The security token included in the request is expired
ID: aws/expired-token-exception
90%Fix Rate
90%Confidence
240Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
AWS session token has expired. Common with STS temporary credentials and SSO sessions.
genericWorkarounds
-
92% success Refresh credentials with aws sso login or aws sts assume-role
aws sso login --profile my-profile
Sources: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
-
85% success Use credential_process or credential helpers for automatic refresh
Use credential_process or credential helpers for automatic refresh
Sources: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html
Dead Ends
Common approaches that don't work:
-
Hardcode long-lived access keys
88% fail
Security anti-pattern, keys can leak and don't rotate
-
Extend token lifetime to maximum
55% fail
Only delays the problem, tokens still expire
Error Chain
Preceded by:
Frequently confused with: