Skip to content

feat(bedrock): support AWS_SHARED_CREDENTIALS_FILE for autoload - #7502

Closed
IdoKendo wants to merge 4 commits into
anomalyco:devfrom
IdoKendo:provider-bedrock-shared-cred-file
Closed

IdoKendo wants to merge 4 commits into
anomalyco:devfrom
IdoKendo:provider-bedrock-shared-cred-file

Conversation

@IdoKendo

@IdoKendo IdoKendo commented Jan 9, 2026 •

Copy link
Copy Markdown

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.

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.

Adds test coverage for the new environment variable configuration.
@github-actions

github-actions Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions

This comment was marked as resolved.

@rekram1-node

rekram1-node commented Jan 9, 2026 •

Copy link
Copy Markdown
Collaborator

@IdoKendo

IdoKendo commented Jan 9, 2026

Copy link
Copy Markdown
Author

Mind updating docs too?

https://opencode.ai/docs/providers/#amazon-bedrock

providers.mdx file in packages/web

Done 😃

@IdoKendo

Copy link
Copy Markdown
Author

Hey @rekram1-node, I added the docs as requested, as well as opened a relevant issue, would appreciate feedback if anything more is needed on my end.

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants