Skip to content

Commit

Permalink
🪨 fix: add AWS STS session token support to Bedrock client (#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrb authored Nov 7, 2024
1 parent 766643e commit c27b26c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/server/services/Endpoints/bedrock/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const getOptions = async ({ req, endpointOption }) => {
const {
BEDROCK_AWS_SECRET_ACCESS_KEY,
BEDROCK_AWS_ACCESS_KEY_ID,
BEDROCK_AWS_SESSION_TOKEN,
BEDROCK_REVERSE_PROXY,
BEDROCK_AWS_DEFAULT_REGION,
PROXY,
Expand All @@ -24,6 +25,7 @@ const getOptions = async ({ req, endpointOption }) => {
: {
accessKeyId: BEDROCK_AWS_ACCESS_KEY_ID,
secretAccessKey: BEDROCK_AWS_SECRET_ACCESS_KEY,
...(BEDROCK_AWS_SESSION_TOKEN && { sessionToken: BEDROCK_AWS_SESSION_TOKEN }),
};

if (!credentials) {
Expand Down

0 comments on commit c27b26c

Please sign in to comment.