[PR #7502] feat(bedrock): support AWS_SHARED_CREDENTIALS_FILE for autoload #12419

Open
opened 2026-02-16 18:17:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7502

State: open
Merged: No


What does this PR do?

This PR solves #7924

This PR enables AWS Bedrock provider autoload when AWS_SHARED_CREDENTIALS_FILE environment variable is set.

Previously only AWS_PROFILE, AWS_ACCESS_KEY_ID, and AWS_BEARER_TOKEN_BEDROCK triggered autoload.

The AWS_SHARED_CREDENTIALS_FILE is documented here: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html

How did you verify your code works?

Aside from testing the change manually on my local env, this PR also adds test coverage for the new environment variable configuration.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7502 **State:** open **Merged:** No --- ### What does this PR do? This PR solves #7924 This PR enables AWS Bedrock provider autoload when AWS_SHARED_CREDENTIALS_FILE environment variable is set. Previously only AWS_PROFILE, AWS_ACCESS_KEY_ID, and AWS_BEARER_TOKEN_BEDROCK triggered autoload. The AWS_SHARED_CREDENTIALS_FILE is documented here: [https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-envvars.html) ### How did you verify your code works? Aside from testing the change manually on my local env, this PR also adds test coverage for the new environment variable configuration.
yindo added the pull-request label 2026-02-16 18:17:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12419