環境変数

CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS

AWS デフォルト認証プロバイダーチェーンが認証情報を生成するまでの待機時間をミリ秒単位で設定します。

使い方・用途

  • デフォルト値は 60000 (60秒) で、v2.1.207 以降で利用可能です
  • aws-vault を介した MFA 付きのブラウザベース SSO サインインなど、対話型ログインに時間がかかる場合に値を引き上げます
  • 認証ステップが途中で停止し、リクエストがタイムアウトエラーで失敗する課題を解決します
英語原文(公式ドキュメントより)

Time in milliseconds Claude Code waits for the AWS default credential provider chain to produce credentials before the request fails with AWS default-chain credential resolve timed out (default: 60000). Raise it when a step in your chain legitimately needs longer, such as a browser-based SSO sign-in with MFA through a wrapper like aws-vault. Applies wherever Claude Code signs with the default chain: Amazon Bedrock, Claude Platform on AWS, and the Mantle endpoint. Requires Claude Code v2.1.207 or later