https://www.boundaryml.com logo
🟑 Request for endpoint_url in AWS bedrock LLM cli...
# questions
r
Hi everyone! We wanna use baml in one of our environments in aws, but have to add endpoint_url when invoking amazon bedrock (it's a private endpoint etc). I didn't see such a parameter in the llm client for bedrock and was wondering if there's any way to invoke it. If the answer is no, would you consider adding it? πŸ˜„
b
We can definitely add it! I’ll check the docs for the underlying SDK when I get in, but can you provide a little more detail?
Is this a govcloud thing, custom quota, something else? I’m not familiar with the idea of private endpoints
r
Sorry I meant PrivateLink! it's behind a VPC so communication doesn't go through the internet and only on aws infra. Needed for sensitive environments. More here: https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html Once you do that, you're basically invoking an endpoint (with its own IP/hostname) behind a VPC, that's why you'll need the endpoint var.
btw I can open up a pr and do it in a couple of days, just wanted to make sure I didn't miss anything and that you're all okay with adding this parameter πŸ˜„
b
We would love this!
If you're willing to open up a PR I'm happy to give you some more specific pointers - do you use the python client, the ts client, go, or something else?
r
Deal πŸ˜„ Will put something down in the next couple of days πŸ˜„
And yeah I'm using python
b
awesome! were you able to test it locally at all?
r
didn't have a local env with vpc, but can get one by tomorrow! πŸ˜„
b
that would be fabulous - also, if you could update fern/03-reference/baml/clients/providers/aws-bedrock.mdx that'd be great
r
Works!
Don’t even need a vpc, you can just add "endpoint_url": "https://bedrock-runtime.eu-central-1.amazonaws.com" to one of the tests for example if it’s enabled in this region
updated the docs as well