Skip to content

Conversation

@awsarron
Copy link
Member

Description

Use the AWS_REGION environment variable for the Bedrock model provider region if set and boto_session is not passed.

Related Issues

#38

Documentation PR

strands-agents/docs#15

Type of Change

  • Bug fix

Testing

  • hatch fmt --linter
  • hatch fmt --formatter
  • hatch test --all
  • hatch run test-integ
  • Manually tested by:
    1. Setting AWS_REGION to us-west-1, got an error as expected because Bedrock is not available in us-west-1: botocore.errorfactory.ValidationException: An error occurred (ValidationException) when calling the ConverseStream operation: Your account is not authorized to invoke this API operation.
    2. Unset AWS_REGION, fell back to us-west-2 and succeeded as expected

Checklist

  • I have read the CONTRIBUTING document
  • I have added tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

… model provider region if set and boto_session is not passed
@awsarron awsarron requested a review from a team as a code owner May 18, 2025 21:39
@awsarron awsarron merged commit 4d29560 into strands-agents:main May 18, 2025
22 checks passed
@awsarron awsarron deleted the fix-bedrock-region branch May 18, 2025 21:56
awsarron added a commit to awsarron/sdk-python that referenced this pull request May 18, 2025
… model provider region if set and boto_session is not passed (strands-agents#39)
awsarron added a commit that referenced this pull request May 18, 2025
* Update README.md mention of tools repo (#29)

Typo in the examples tools header referencing the wrong repo

* Update README to mention Meta Llama API as a supported model provider (#21)

Co-authored-by: Ryan Coleman <[email protected]>

* fix: tracing of non-serializable values, e.g. bytes (#34)

* fix(bedrock): use the AWS_REGION environment variable for the Bedrock model provider region if set and boto_session is not passed (#39)

* v0.1.2

---------

Co-authored-by: Ryan Coleman <[email protected]>
Co-authored-by: Ryan Coleman <[email protected]>
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.

2 participants