[BUG] `awsAuthRefresh` is not used by claude code
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.92
- Operating System: macOS 14.7.5
- Terminal: Terminal App
Bug Description
<!-- A clear and concise description of the bug -->
Claude Code seems not to use the awsAuthRefresh setting.
My awsAuthRefresh setting in .claude.json is: aws sso login --profile my-profile-name, and AWS_PROFILE envvar is my-profile-name.
Without fresh credential files in .aws/sso/cache, CC doesn't respond any message from API at all.
After I execute aws sso login --profile my-profile-name, the credential file is generated in .aws/sso/cache, then CC works well.
As I understand it, awsAuthRefresh should work in a situation where it is launched without valid credentials.
Steps to Reproduce
- Remove all credential files in
.aws/sso/cache/**.json claude hello- No response.
Expected Behavior
<!-- What you expected to happen -->
awsAuthRefreshrefresh AWS credentials automatically
Actual Behavior
<!-- What actually happened -->
awsAuthRefreshseems not to work.
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗