AWS Bedrock Initialization order #220
tomercagan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using
ChatBedrock
(BedrockBase
) /ChatBedrockConverse
and I am wondering a bit about the initialization order (validate_environment
and how session is created). I want to discuss specifically the usage ofcredentials_profile_name
.Since this field is passed in in the constructor, I would expect it to be higher priority than other authentication methods. If the user provided it explicitly, why would it not be used?
Currently (see locations below) the classes first look at access/secret keys, and ignore the profile if they exists. In my case, I had values in the default credentials file (~/.aws/credentials) and it took it over
credentials_profile_name
that I specified (and is configured, with sso in my case, in ~/.aws/config).I hope this makes sense and I am not missing something here. I am not that versed with all the authentication methods / deployment concerns available / used in the wild.
Here are the locations where session is initialized. Note that in both cases,
self.credentials_profile_name
appears in aelif
caluse:Beta Was this translation helpful? Give feedback.
All reactions