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
Copy file name to clipboardExpand all lines: fern/03-reference/baml/clients/providers/aws-bedrock.mdx
+45-37Lines changed: 45 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,63 +22,49 @@ client<llm> MyClient {
22
22
23
23
## Authentication
24
24
25
-
AWS Bedrock uses standard AWS authentication methods. Choose the one that best fits your environment:
25
+
AWS Bedrock uses standard AWS authentication methods. We recommend using AWS profiles in development and AWS services' IAM roles in production, but all of the following are supported:
26
26
27
27
<Tabs>
28
-
<Tabtitle="Environment Variables">
28
+
<Tabtitle="AWS Profile">
29
29
30
-
The simplest way to authenticate. Set these environment variables:
30
+
When developing locally, you can use the AWS CLI in combination with profiles to manage your credentials.
31
31
32
-
```bash
33
-
export AWS_ACCESS_KEY_ID="your_key"
34
-
export AWS_SECRET_ACCESS_KEY="your_secret"
35
-
export AWS_REGION="us-east-1"
36
-
```
32
+
For example, if you run `aws sso login` with a default profile, BAML will automatically pick up those credentials:
37
33
38
-
```baml BAML
39
-
client<llm> MyClient {
40
-
provider aws-bedrock
41
-
options {
42
-
// No need to specify credentials - they'll be picked up from environment
0 commit comments