Skip to content

Commit 4c0642a

Browse files
authored
Update Amazon Bedrock auth (#850)
1 parent b39dc14 commit 4c0642a

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

docs/cody/enterprise/completions-configuration.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,19 @@ For `endpoint`, you can either:
8787

8888
For `accessToken`, you can either:
8989

90-
- Leave it empty and rely on instance role bindings or other AWS configurations in the `frontend` service
91-
- Set it to `<ACCESS_KEY_ID>:<SECRET_ACCESS_KEY>` if directly configuring the credentials
92-
- Set it to `<ACCESS_KEY_ID>:<SECRET_ACCESS_KEY>:<SESSION_TOKEN>` if a session token is also required
90+
- Leave it empty and rely on instance role bindings or other AWS configurations in the `frontend` service
91+
- Set it to `<ACCESS_KEY_ID>:<SECRET_ACCESS_KEY>` if directly configuring the credentials
92+
- Set it to `<ACCESS_KEY_ID>:<SECRET_ACCESS_KEY>:<SESSION_TOKEN>` if a session token is also required
93+
94+
<Callout type="warning">
95+
We only recommend configuring AWS Bedrock to use an accessToken for
96+
authentication. Specifying no accessToken (e.g. to use [IAM roles for EC2 /
97+
instance role
98+
binding](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html))
99+
is not currently recommended (there is a known performance bug with this
100+
method which will prevent autocomplete from working correctly. (internal
101+
issue: PRIME-662)
102+
</Callout>
93103

94104
### Example: Using GCP Vertex AI
95105

docs/cody/enterprise/model-config-examples.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,4 +682,14 @@ Provider override `serverSideConfig` fields:
682682

683683
Provisioned throughput for Amazon Bedrock models can be configured using the `"awsBedrockProvisionedThroughput"` server-side configuration type. Refer to the [Model Overrides](/cody/enterprise/model-configuration#model-overrides) section for more details.
684684

685+
<Callout type="warning">
686+
We only recommend configuring AWS Bedrock to use an accessToken for
687+
authentication. Specifying no accessToken (e.g. to use [IAM roles for EC2 /
688+
instance role
689+
binding](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html))
690+
is not currently recommended (there is a known performance bug with this
691+
method which will prevent autocomplete from working correctly. (internal
692+
issue: PRIME-662)
693+
</Callout>
694+
685695
</Accordion>

0 commit comments

Comments
 (0)