> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Amazon Bedrock with Access Key – StackOne Hub

> Link a Amazon Bedrock account in the StackOne Hub using Access Key. End-user guide to authorize the integration and start using Amazon Bedrock actions.

> [!WARNING]
>
> You need an AWS account with IAM permissions to create users and access keys, and access to Amazon Bedrock in the Region you connect.

## Create an IAM user

Create a dedicated IAM user for StackOne so its access can be managed and revoked independently of your own.

**1. Sign in to AWS**

Sign in to your [AWS IAM console](https://console.aws.amazon.com/iam/).

<ul>
  <li>Navigate to **Users** > **Create user**.</li>
</ul>

**2. Set the user name**

Enter a name for the user and continue.

<ul>
  <li>Example: `stackone-bedrock`</li>
  <li>Click **Next**.</li>
</ul>

**3. Attach permissions**

Grant the user access to Amazon Bedrock.

<ul>
  <li>Select **Attach policies directly**.</li>
  <li>Attach **AmazonBedrockFullAccess**, or a custom policy scoped to the Bedrock actions you need (for example `bedrock:InvokeModel`, `bedrock:InvokeAgent`, `bedrock:Retrieve`, `bedrock:RetrieveAndGenerate`, `bedrock:ListFoundationModels`, `bedrock:ListAgents`, `bedrock:ListKnowledgeBases`).</li>
  <li>Click **Next**, then **Create user**.</li>
</ul>

## Create an access key

Generate the Access Key ID and Secret Access Key that StackOne uses to sign requests.

**1. Open the user's security credentials**

From **Users**, select the user you just created and open the **Security credentials** tab.

<ul>
  <li>Under **Access keys**, click **Create access key**.</li>
</ul>

**2. Choose a use case**

Select **Third-party service** as the use case.

<ul>
  <li>Acknowledge the recommendation, then click **Next**.</li>
  <li>(Optional) Add a description tag, then click **Create access key**.</li>
</ul>

**3. Copy the Access Key ID and Secret Access Key**

Copy both values and store them securely for use later.

<ul>
  <li>**Access Key ID** format: `AKIAIOSFODNN7EXAMPLE`</li>
  <li>The **Secret Access Key** is shown only once — if you lose it, delete the access key and create a new one.</li>
  <li>Leave **Session Token** blank when you use this long-term access key.</li>
</ul>

## Use temporary credentials (optional)

If your organization doesn't allow long-term access keys, connect with temporary credentials from AWS Security Token Service (STS) instead, such as those returned by `aws sts assume-role` or `aws sts get-session-token`, or copied from the AWS access portal for IAM Identity Center.

<ul>
  <li>Enter all three values STS returns - the **Access Key ID** (starts with `ASIA`), the **Secret Access Key** and the **Session Token**.</li>
  <li>The identity behind the credentials needs the same Bedrock permissions as the IAM user above.</li>
  <li>Temporary credentials expire (after 1 hour by default for an assumed role, and at most 36 hours), and StackOne does not renew them. Generate a new set and update the connection before they expire.</li>
</ul>

## Find your AWS Region

Use the Region that hosts your Bedrock resources, such as agents, knowledge bases, guardrails and custom models.

<ul>
  <li>Check the Region selector in the top-right of the AWS console.</li>
  <li>Enter the Region code, not the display name</li>
  <li>Example: `US East (N. Virginia)` is `us-east-1`, and `US West (Oregon)` is `us-west-2`</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.