Use of AWS STS Temporary Credentials Not Working for Native Bedrock Endpoint #4179
Replies: 2 comments 4 replies
-
Docker is using a separate OS from windows. You would need to mount the credentials to the container setup to load as expected. Even if you use WSL2 and use the AWS CLI from the Linux terminal, the containers wouldn’t have access unless the container has those “host” credential paths mounted. |
Beta Was this translation helpful? Give feedback.
4 replies
-
I'm closing this for now and opening a new issue based on a more recent install of Librechat v0.7.5. Same issue, different day. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
I've setup Librechat on a Windows 11 machine using docker and did not specify any AWS related credentials in the .env file except for "BEDROCK_AWS_DEFAULT_REGION=us-east-1 ". After opening a command line, I type: "setx AWS_PROFILE myprofilename" with the understanding that the environment variable should be used by default. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-using-profiles.As a test, I type "aws s3 ls" to validate I'm authenticated and can see S3 buckets in the us-east-1 region. This tells me that, by default, the named profile is being used since I didn't need to specify a profile. I run "docker-compose up", attempt to use Amazon Bedrock, then receive the attached error:LibreChat | 2024-09-20 19:41:10 error: [api/server/controllers/agents/client.js #sendCompletion] Unhandled error type Could not load credentials from any providersLibreChat | 2024-09-20 19:41:10 error: [handleAbortError] AI response error; aborting request: Could not load credentials from any providers
Steps to Reproduce
and a named profile then use "setx AWS_PROFILE user1" as defined here: https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html#cli-configure-files-using-profilesand define them in your user environment:https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
Example (fake creds):
4. Next, validate that you have programmatic access to AWS without having to specify the named profile.4. Uncomment the "BEDROCK_AWS_DEFAULT_REGION=us-east-1" line in the .env file
5. Add the following enviornment variables to the docker-compose.override.yml file to pull them from the host into the LibreChat docker container:
Example:
What browsers are you seeing the problem on?
Not a browser issue
Relevant log output
The error will be similar to:
###screenshot###
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions