Elffuss BraidHub

kikocis/continue public

Merge pull request #6572 from continuedev/dallin/bedrock-auth-docs

docs: accessKeyId and secretAccessKey bedrock auth options
Changeset9df0fa5d79c7e04c7ead222d283069bb14cdfcd6ffe4e98e68fe0c13732238da
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-07-19 10:54 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-19 10:54 -07:00
Parentsedf48ce0a5d9, 6e4b7e9fc0a8

Browse the files at this changeset

1 file changed

modified docs/customize/model-providers/top-level/bedrock.mdx +35 −0
@@ -186,6 +186,41 @@
186186 aws_session_token = pqrstuvwxyz # Optional: means short term creds.
187187 ```
188188
189+You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication instead of a local credentials profile.
190+
191+<Tabs>
192+ <Tab title="YAML">
193+ ```yaml title="config.yaml"
194+ models:
195+ - name: Claude 3.7 Sonnet
196+ provider: bedrock
197+ model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
198+ env:
199+ region: us-east-1
200+ accessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} # can also enter key inline here for local assistants
201+ secretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # can also enter key inline here for local assistants
202+ roles:
203+ - chat
204+ ```
205+ </Tab>
206+ <Tab title="JSON">
207+ ```json title="config.json"
208+ {
209+ "models": [
210+ {
211+ "title": "Claude 3.7 Sonnet",
212+ "provider": "bedrock",
213+ "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
214+ "region": "us-east-1",
215+ "accessKeyId": "[YOUR_ACCESS_KEY_ID]",
216+ "secretAccessKey": "[YOUR_SECRET_ACCESS_KEY]"
217+ }
218+ ]
219+ }
220+ ```
221+ </Tab>
222+</Tabs>
223+
189224 ## Custom Imported Models
190225
191226 To setup Bedrock using custom imported models, add the following to your config file: