Enhancement: Simplify logic around BEDROCK_AWS_ACCESS_KEY_ID and BEDROCK_AWS_SECRET_ACCESS_KEY #4484
Closed
1 task done
Labels
enhancement
New feature or request
What features would you like to see added?
Replace BEDROCK_AWS_ACCESS_KEY_ID and BEDROCK_AWS_SECRET_ACCESS_KEY with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, and rely on AWS SDK to simply the logic.
More details
If BEDROCK_AWS_ACCESS_KEY_ID and BEDROCK_AWS_SECRET_ACCESS_KEY is not provided, the AWS SDK will use its default credential resolution logic. In that logic, it will look for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables. So directly passing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY will be sufficient, and we can remove the custom logic around checking BEDROCK_-prefixed variants.
Also, for users using AWS STS CLI to assume roles, the user needs to pass the AWS_SESSION_TOKEN as well. In that case, customer need to pass this in
.env
:In this case, there is no BEDROCK_AWS_SESSION_TOKEN, and the BEDROCK_ ones make things complicated.
Which components are impacted by your request?
Endpoints
Pictures
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: