Connect AI Squared to AWS Bedrock Model

This guide will help you configure the AWS Bedrock Model Connector in AI Squared to access your AWS Bedrock Model Endpoint.

Prerequisites

Before proceeding, ensure you have the necessary access key, secret access key, and region from AWS.

Step-by-Step Guide to Connect to an AWS Bedrock Model Endpoint

Step 1: Navigate to AWS Console

Start by logging into your AWS Management Console.

  1. Sign in to your AWS account at AWS Management Console.

Step 2: Locate AWS Configuration Details

Once you’re in the AWS console, you’ll find the necessary configuration details:

  1. Access Key and Secret Access Key:

    • Click on your username at the top right corner of the AWS Management Console.
    • Choose “Security Credentials” from the dropdown menu.
    • In the “Access keys” section, you can create or view your access keys.
    • If you haven’t created an access key pair before, click on “Create access key” to generate a new one. Make sure to copy the Access Key ID and Secret Access Key as they are shown only once.
  2. Region:

    • The AWS region can be selected from the top right corner of the AWS Management Console. Choose the region where your AWS Bedrock resources is located and note down the region.
  3. Inference Profile ARN:

    • The Inference Profile ARN is in the Cross-region inference page and can be found in your selected model.
  4. Model ID:

    • The AWS Model Id can be found in your selected models catalog.

Step 3: Configure AWS Bedrock Model Connector in Your Application

Now that you have gathered all the necessary details enter the following information:

  • Access Key ID: Your AWS IAM user’s Access Key ID.
  • Secret Access Key: The corresponding Secret Access Key.
  • Region: The AWS region where your Bedrock model are located.
  • Inference Profile ARN: Inference Profile ARN for Model in AWS Bedrock.
  • Model ID: The Model ID.

Sample Request and Response