Skip to content

[BUG] Previous wrongly forced selection of us-west-2 region by agents not fixed by Merge #254 and passage to v1.0.0 #479

@juliencarponcy

Description

@juliencarponcy

I've commented on the most related issue which gave rise to #254 and can't be reopen by myself


Hello,

This is still not working for me after the recent merge and version change / tag to 1.0.0 (before and after yesterday updates)

I'd like to suggest reopenning : #299
I reproduce the same error whenever testing different noteboooks presents in the

Checks

I have updated to the lastest minor and patch version of Strands :

Yes v1.0.0 (https://github.com/strands-agents/sdk-python@19fb01e67ce584f4195403ec70cdc728d5066c3f)

I have checked the documentation and this is not expected behavior :

Yes

I have searched ./issues and there are no duplicates of my issue:

Yes found the current one

Strands Version

1.0.0

Python Version

3.10.14

Operating System

Windows 11 Pro 26100.4349

Installation Method

uv+pip

Steps to Reproduce

Run strands, for instance in notebooks from the samples repo (https://github.com/strands-agents/samples)
Notice that we default to us-west-2 even if the aws default config specifies a different region

Expected Behavior

Strands should use AWS_REGION, or default to the value defined aws config, and not fallback to us-west-2.

Actual Behavior

We default to us-west-2 where no region is detected.

Additional Context

I use sso login which might affect the expected results, with .env files:
I am also doing this during a pro hackathon sponsored for which AWS is organizing : https://awsagentichackathon.onova.io/ so this events accounts particularity might play.

AWS_PROFILE=
AWS_REGION=us-east-1

Looks like an confusion between region-name and default-region parameters of boto3 session vs client variables (depending on the authentication method chosen or a combination of them)

Possible Solution

Instead of defaulting to us-west-2, default to the aws config default

Related Issues

strands-agents/tools#170


Originally posted by @juliencarponcy in #238

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions