Skip to content

fix(bedrock): honor generic AWS_ENDPOINT_URL env var - #423

Open
cpsievert wants to merge 1 commit into
mainfrom
fix-bedrock-endpoint-env-var
Open

fix(bedrock): honor generic AWS_ENDPOINT_URL env var#423
cpsievert wants to merge 1 commit into
mainfrom
fix-bedrock-endpoint-env-var

Conversation

@cpsievert

Copy link
Copy Markdown
Collaborator

Closes #415.

Most of the issue was already addressed by #406, which defaults the Bedrock base_url from AWS_ENDPOINT_URL_BEDROCK_RUNTIME / AWS_ENDPOINT_URL_BEDROCK_MANTLE. This PR closes the remaining gap called out in the issue: the generic AWS_ENDPOINT_URL is now honored too, with botocore-style precedence — service-specific variable > generic AWS_ENDPOINT_URL > computed regional endpoint.

Adds unit tests covering the generic var for both converse and mantle, and service-specific-outranks-generic precedence.

The service-specific override (AWS_ENDPOINT_URL_BEDROCK_RUNTIME /
AWS_ENDPOINT_URL_BEDROCK_MANTLE) outranks the generic AWS_ENDPOINT_URL,
which outranks the regional endpoint computed from the region.

Closes #415
@cpsievert
cpsievert force-pushed the fix-bedrock-endpoint-env-var branch from c559441 to b293a7b Compare September 4, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bedrock providers ignore AWS_ENDPOINT_URL_BEDROCK_RUNTIME env var

1 participant