> For the complete documentation index, see [llms.txt](https://modelmesh.gitbook.io/cline-zhong-wen-ban-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://modelmesh.gitbook.io/cline-zhong-wen-ban-docs/aws-bedrock-w-profile-authentication.md).

# AWS Bedrock w/ Profile Authentication

### Configuring AWS Bedrock to use AWS Profiles for Authentication <a href="#configuring-aws-bedrock-to-use-aws-profiles-for-authentication" id="configuring-aws-bedrock-to-use-aws-profiles-for-authentication"></a>

**Cline offers the option of utilizing AWS credentials or AWS profiles to access AWS Bedrock services. SSO/Federated roles are suggested over Legacy IAM configuration; this guide describes how to configure your environment so that Cline uses SSO roles for authentication.**

***

1. Install the [latest version](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) of AWS CLI
   * Follow the AWS docs to install your OS-specific version of AWS CLI
2. [Configure IAM authentication ](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html)with the AWS CLI
   * If you do not already have AWS access through the IAM Identity Center, follow the [IAM User Guide](https://docs.aws.amazon.com/singlesignon/latest/userguide/getting-started.html) to set up IAM users and roles. Ensure you have a `PowerUserAccess` role.
   * If you have access to AWS through your employer, open your AWS access portal and find the appropriate account. Ensure you have `PowerUserAccess`permissions.
   * Open the `Access keys` link and note the `SSO start URL` and `SSO region`, which are needed in the next step
3. Continue configuring your profile using[ the `aws configure sso` CLI wizard](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html#cli-configure-sso-configure)
   * Once configured, use the following command to authenticate the AWS CLI: \``aws sso login --profile <AWS-profile-name>`
   * Note which profile name you attach to your AWS account, this is needed to configure Cline in the following steps
4. If you haven't already done so, install VSCode and the Cline extension. Consult the Getting Started page for guidance.
5. Open the Cline extension, then click on the settings button ⚙️ to select your API Provider.
   * From the API Provider dropdown, select AWS Bedrock
   * Select the AWS Profile radio button, then enter the AWS Profile Name from step 3
   * Select your AWS Region from the dropdown menu
   * Selecting the cross-region inference checkbox is required for some models

![](https://docs.cline.bot/~gitbook/image?url=https%3A%2F%2F3321249260-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Ff8Oh1Lcy6yWYq1caYESV%252Fuploads%252FoZHMharrqopuim2vbKuA%252Fcline-aws-setup-markup.png%3Falt%3Dmedia%26token%3D44b6f43a-bb4a-45bb-88bf-3c3179986037\&width=768\&dpr=4\&quality=100\&sign=236d145c\&sv=2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://modelmesh.gitbook.io/cline-zhong-wen-ban-docs/aws-bedrock-w-profile-authentication.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.
