You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, BedrockProxyChatModel in spring-ai-bedrock-converse does not automatically pick up the AWS region from standard AWS configuration mechanisms, such as:
Environment variable (AWS_REGION)
AWS shared config file (~/.aws/config)
System properties (-Daws.region=us-west-2)
Instance metadata service (IMDS) (EC2/ECS)
Instead, it defaults to us-east-1, unless explicitly overridden via .region(Region.of(...)).
Please update AWS region retrieval in BedrockProxyChatModel to ensure consistency with other AWS SDK clients. This is especially important for services that are already running in AWS environment.
Expected Behavior
The following code should properly pick up the region from available sources similar to other AWS clients:
BedrockProxyChatModel.builder().build() overrides the region with us-east-1.
Context
I want to integrate AWS Bedrock seamlessly, just like other AWS services, with minimal configuration. Other AWS SDK clients pick up the configuration automatically from the environment, which is crucial when running in AWS environments where overriding variables is discouraged. This ensures better interoperability and allows smooth transitions between regions or accounts without requiring manual adjustments. The expectation is that services should work out of the box with the existing AWS configuration, improving ease of deployment and consistency across different environments.
Currently,
BedrockProxyChatModel
inspring-ai-bedrock-converse
does not automatically pick up the AWS region from standard AWS configuration mechanisms, such as:AWS_REGION
)~/.aws/config
)-Daws.region=us-west-2
)Instead, it defaults to
us-east-1
, unless explicitly overridden via.region(Region.of(...))
.Please update AWS region retrieval in
BedrockProxyChatModel
to ensure consistency with other AWS SDK clients. This is especially important for services that are already running in AWS environment.Expected Behavior
The following code should properly pick up the region from available sources similar to other AWS clients:
Current Behavior
BedrockProxyChatModel.builder().build()
overrides the region withus-east-1
.Context
I want to integrate AWS Bedrock seamlessly, just like other AWS services, with minimal configuration. Other AWS SDK clients pick up the configuration automatically from the environment, which is crucial when running in AWS environments where overriding variables is discouraged. This ensures better interoperability and allows smooth transitions between regions or accounts without requiring manual adjustments. The expectation is that services should work out of the box with the existing AWS configuration, improving ease of deployment and consistency across different environments.
Currently I have to emulate it like this:
The text was updated successfully, but these errors were encountered: