Commit 3516f99
fix: let IAM credentials take precedence over stored Bedrock API key
When a user has configured AWS IAM credentials (access keys or a profile)
for Bedrock, a stored API key in auth.json would still be written into
AWS_BEARER_TOKEN_BEDROCK and forced through bearer-token auth by
@ai-sdk/amazon-bedrock, overriding the credential chain entirely and
failing with "Please make sure your API Key is valid" on every request.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c99a0a2 commit 3516f99
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
0 commit comments