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
exportconstclient=newAnthropicBedrock({awsRegion: "us-east-1",awsAccessKey: "MY_ADMIN_ACCESS_KEY",awsSecretKey: "MY_ADMIN_SECRET_ACCESS_KEY",})// using SDK, message.create() request using the client above
Problem
Runtime error happens only in a Lambda function, not locally.
PermissionDeniedError: 403 The security token included in the request is invalid
Expected behavior
The error shouldn't happen in the case above.
The SDK does not need awsSessionToken to be provided.
Only the awsAccessKey & awsSecretKey should be required to match aws-sdk (v2/v3) behavior.
The text was updated successfully, but these errors were encountered:
dev-natalya
changed the title
Bedrock. Authentication error when using awsAccessKey & awsSecretKey
Bedrock. Authentication error when using only awsAccessKey & awsSecretKeySep 25, 2024
Usage
Problem
Runtime error happens only in a Lambda function, not locally.
PermissionDeniedError: 403 The security token included in the request is invalid
Expected behavior
The error shouldn't happen in the case above.
The SDK does not need
awsSessionToken
to be provided.Only the
awsAccessKey
&awsSecretKey
should be required to matchaws-sdk
(v2/v3) behavior.The text was updated successfully, but these errors were encountered: