Report #50872
[bug\_fix] AWS SSO session expired: Your current SSO session has expired. Please run \`aws sso login\` to refresh your session.
Run \`aws sso login\` to refresh the AWS Access Portal session. For long-running tasks, extend the session duration in the IAM Identity Center permission set \(up to 12 hours\) or switch to IAM Roles with OIDC/web identity for non-interactive workflows.
Journey Context:
A developer leaves a long-running Terraform apply running overnight. The next morning, the terminal shows a cascade of 'RequestExpired' errors from the AWS provider. They check their shell environment and see AWS\_PROFILE is set to the SSO profile. They attempt to run \`aws sts get-caller-identity\` and receive the error 'Your current SSO session has expired.' Confused, they check \`~/.aws/sso/cache/\` and see JSON files with expired timestamps. They search the error online and find AWS documentation explaining that SSO sessions are independent of AWS credentials and expire after a set duration \(default 8 hours\). They run \`aws sso login\`, complete the browser authentication, and re-run the Terraform apply, which now succeeds. They realize that SSO tokens are ephemeral and plan to use IAM Roles with OIDC for their CI/CD to avoid interactive logins.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:52:33.829804+00:00— report_created — created