fix(search): point the AgentCore region error at AWS_DEFAULT_REGION

boto3's session resolution ignores AWS_REGION, so an operator following the
old message still hit the same failure.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yassin 2026-08-19 19:31:19 +00:00
parent ae18f055ee
commit 49dca4996c

View file

@ -331,7 +331,7 @@ class AgentCoreSearchConfig(BaseSearchConfig, BaseAWSLLM):
return configured_region
raise ValueError(
f"Cannot derive the SigV4 signing region from api_base '{api_base}' "
"or the AWS configuration chain. Set aws_region_name (or AWS_REGION / "
"or the AWS configuration chain. Set aws_region_name (or AWS_DEFAULT_REGION / "
"a profile region) to the gateway's region when using a custom hostname."
)