{"version":"2.0.24","anchor":"automatic-aws-credential-initialization-for-bedrock","canonical_anchor":"automatic-aws-credential-initialization-for-bedrock","heading":"Automatic AWS Credential Initialization for Bedrock","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.24\/e\/automatic-aws-credential-initialization-for-bedrock","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.24","markdown":"### Automatic AWS Credential Initialization for Bedrock\n\n**What:** When using AWS Bedrock, credentials are now validated and refreshed automatically at startup.\n\n**How to use:**\n\n`# Configure custom AWS auth commands in ~\/.claude.json { \"awsAuthRefresh\": \"aws sso login --profile my-profile\", \"awsCredentialExport\": \"aws configure export-credentials --profile my-profile\" } # Or skip auto-initialization if not needed export CLAUDE_CODE_SKIP_BEDROCK_AUTH=1 claude` **Details:**\n\n- Runs at startup when `CLAUDE_CODE_USE_BEDROCK` is set and `CLAUDE_CODE_SKIP_BEDROCK_AUTH` is not set\n- First attempts standard AWS SDK authentication via STS GetCallerIdentity\n- Falls back to custom `awsAuthRefresh` or `awsCredentialExport` commands if needed\n- Includes workspace trust checks before executing custom commands\n- Provides visual authentication feedback\n- **Evidence**: New `uhQ()` initialization function at line 465179, called during startup at line 475285 in pretty-v2.0.24.js"}