# Use AWS Bedrock



# Attach Amazon Bedrock permissions to a user or role

1. Select **Users** or **Roles** and then select your user or role.
2. In the **Permissions** tab, choose **Add permissions** and then choose **Add AWS managed policy**. Choose the [AmazonBedrockLimitedAccess](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonBedrockLimitedAccess.html) AWS managed policy.

  
References:

- [https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-api.html#gs-api-br-permissions](https://docs.aws.amazon.com/bedrock/latest/userguide/getting-started-api.html#gs-api-br-permissions)
- [https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonBedrockLimitedAccess.html](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AmazonBedrockLimitedAccess.html)

# Bedrock Model pricing details

### Anthropic

##### Ireland (eu-west-1)

Geo and In-region Cross-region Inference

<table border="1" id="bkmrk-anthropic-models-pri" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><th>**Anthropic models**</th><th>**Price per 1,000 input tokens**</th><th>**Price per 1,000 output tokens**</th></tr><tr><td class="align-center">Claude Sonnet 4</td><td class="align-center">$0.003</td><td class="align-center">$0.015</td></tr><tr><td class="align-center">Claude 3.7 Sonnet</td><td class="align-center">$0.003</td><td class="align-center">$0.015

</td></tr><tr><td class="align-center">Claude 3.5 Sonnet</td><td class="align-center">$0.003</td><td class="align-center">$0.015

</td></tr></tbody></table>

A typical RoostGPT Token Usage range across different test-types (as observed with sample tests)

<table border="1" id="bkmrk-test-type-input-toke" style="border-collapse: collapse; width: 100%; height: 148.984px;"><colgroup><col style="width: 36.3528%;"></col><col style="width: 18.1385%;"></col><col style="width: 27.2727%;"></col><col style="width: 18.236%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">**Test Type**</td><td class="align-center" style="height: 29.7969px;">**Input Tokens**</td><td class="align-center" style="height: 29.7969px;">**Output/Completion Tokens**</td><td class="align-center" style="height: 29.7969px;">**Price per test**</td></tr><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">Unit (per Java method) </td><td class="align-center" style="height: 29.7969px;">2500-10000</td><td class="align-center" style="height: 29.7969px;">5000-20000</td><td class="align-center" style="height: 29.7969px;">$0.08 - $0.33</td></tr><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">API Test (Swagger) - Rest Assured</td><td class="align-center" style="height: 29.7969px;">2000-5000</td><td class="align-center" style="height: 29.7969px;">5000-10000</td><td class="align-center" style="height: 29.7969px;">$0.081 - $0.165</td></tr><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">API Test (Swagger) - Postman</td><td class="align-center" style="height: 29.7969px;">2000-5000</td><td class="align-center" style="height: 29.7969px;">5000-10000</td><td class="align-center" style="height: 29.7969px;">$0.081 - $0.165</td></tr><tr style="height: 29.7969px;"><td class="align-center" style="height: 29.7969px;">Functional Test</td><td class="align-center" style="height: 29.7969px;">15000-50000</td><td class="align-center" style="height: 29.7969px;">10000-20000</td><td class="align-center" style="height: 29.7969px;">$0.195 - $0.45</td></tr></tbody></table>

Note:

- RoostGPT Hosted Stack (with DB) caches the AI response and avoids repeat calls to AI model, under identical circumstances
- RoostGPT CLI and VSCode Extension, however do not avail any cache benefit
- Usage of AWS Knowledge Base can incur additional costs

References:

- [https://aws.amazon.com/bedrock/pricing/](https://aws.amazon.com/bedrock/pricing/)