> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/a/aws-bedrock.md).

# AWS Bedrock

Amazon Bedrock is the AWS service for foundation models. OctoXLabs lists the custom models, imported models and custom model deployments in the regions you choose and adds them as AI assets.

## Use cases

* List every ai asset that AWS Bedrock contributes to the inventory.

```
Adapters = aws-bedrock
```

* Check what one AWS Bedrock connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                             | Port | Protocol |
| ------------------- | ----------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Bedrock regional endpoints, for example bedrock.us-east-1.amazonaws.com | 443  | HTTPS    |

### Required permissions

| Scope or role                      | Permission | Needed for                            |
| ---------------------------------- | ---------- | ------------------------------------- |
| bedrock:ListCustomModels           | Read       | Custom models and the connection test |
| bedrock:ListImportedModels         | Read       | Imported models                       |
| bedrock:ListCustomModelDeployments | Read       | Custom model deployments              |

The IAM credentials need read-only Bedrock permissions. Bedrock is a regional service, so list every region where you have custom models, imported models or deployments.

## Create credentials in AWS Bedrock

Create an IAM user with the three read-only permissions above and create an access key. See [AWS access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).

## Connection parameters

| Parameter         | Required | Type            | Default   | Description                                                                  |
| ----------------- | -------- | --------------- | --------- | ---------------------------------------------------------------------------- |
| Access Key ID     | Yes      | String          | None      | AWS Access Key ID.                                                           |
| Secret Access Key | Yes      | String          | None      | AWS Secret Access Key.                                                       |
| Regions           | No       | List of strings | us-east-1 | Regions to scan, for example `us-east-1`, `us-west-2`, `eu-central-1`.       |
| Proxy             | No       | String          | None      | Proxy address. The connector sends requests through `http://<value>`.        |
| Thread Count      | No       | Integer         | 32        | Parallel threads used to scan regions. Minimum 1, maximum 32.                |
| Sleep Time        | No       | Integer         | None      | Delay in seconds between thread batches. Increase it if you hit rate limits. |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

{% hint style="info" %}
Available starting from version 6.6.2.
{% endhint %}
