Skip to content

How to use IAM role to access Amazon Bedrock models correctly? #5873

Closed Answered by hongbo-miao
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

I think somehow LiteLLM does not read /app/proxy_server_config.yaml by default.

I put a new location at /app/config.yaml and added

command: ["litellm", "--port", "4000", "--config", "/app/config.yaml", "--detailed_debug"]

in deployment, now it works!

Here are updated version:

---
apiVersion: v1
kind: ConfigMap
metadata:
  name: hm-litellm-config-map
  namespace: production-hm-litellm
  labels:
    app.kubernetes.io/name: hm-litellm-config-map
    app.kubernetes.io/part-of: production-hm-litellm
data:
  config.yaml: |  # Updated
    # https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
    model_list:
      - model_name: bedrock-claude-3-5-sonnet
        litellm_params:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hongbo-miao
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by hongbo-miao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants