# Amazon Bedrock Credential Setup

This guide will walk you through the process of setting up Amazon Bedrock credentials for use with Tailwinds.

{% hint style="warning" %}
It is Amazon recommended best practice to enable a minimum 90 day IAM key rotation.
{% endhint %}

### Step-by-Step Guide

1. **Log in to your AWS account**
   * Login to your AWS account through the AWS Management Console.
2. **Navigate to IAM**
   * Navigate to the `Identity and Access Management` (IAM) service.<br>

     <figure><img src="/files/X6GBh7Yy3TWQ9Ih2xSM9" alt=""><figcaption></figcaption></figure>
3. **Create a new user**
   * Select `Users` from the left-hand navigation.<br>

     <figure><img src="/files/HegbK6zhjRH2zqZLAf4B" alt=""><figcaption></figcaption></figure>
   * Click `Create user`.<br>

     <figure><img src="/files/trzKdwc8qWzm6GCU7yAK" alt=""><figcaption></figcaption></figure>
   * Give the user a name.
   * **Important:** Do NOT give it AWS Management Console access.
4. **Create and attach a policy**
   * Create a policy.
   * Select the Bedrock service.
   * Create a policy, select the bedrock service, and grant it InvokeModel and InvokeModelWithResponseStream allow on any foundation or provisioned model.<br>

     <figure><img src="/files/vfRnkNOYky8GRwlorZ14" alt=""><figcaption></figcaption></figure>
   * Attach the policy to the user.<br>

     <figure><img src="/files/3VcYRqGUc22xremF2HTp" alt=""><figcaption></figcaption></figure>
5. **Generate access keys**
   * Create the user, then click into the user and navigate to `Security credentials`.
   * Click `Create access key` and select the `Other` Use Case.
   * Download the key and keep it in a safe place (secret store, etc).
6. **Set up Bedrock model access**

   * Navigate back to the Bedrock service.<br>

     <figure><img src="/files/pH8JfbZWlrD2oYZrslh9" alt=""><figcaption></figcaption></figure>

   * In the left-hand menu navigate to Model access.<br>

     <figure><img src="/files/qrKFxqGkMFT9nhpdC5aD" alt=""><figcaption></figcaption></figure>

   * Select `Enable specific models`.

   * Select the models you want to try (e.g. all Amazon and all Anthropic).<br>

     <figure><img src="/files/rWydVAoCid4lvRLvTG87" alt=""><figcaption></figcaption></figure>

   * Enter your business information and submit access request.

   > Note: Amazon model access is typically granted immediately and other model provider access is typically granted within minutes, although it's not guaranteed.
7. **Add credentials to Tailwinds**
   * Add as credential to Bedrock within Tailwinds Credentials page.<br>

     <figure><img src="/files/ycPBJCLyjz2tZsx2RCp7" alt=""><figcaption></figcaption></figure>

Congratulations! You've successfully set up Amazon Bedrock credentials for use with Tailwinds.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tailwindsdocs.innovativesol.com/readme/credentials/amazon-bedrock-credential-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
