Bedrock Connection

Amazon Bedrock is a fully managed service that provides access to foundation models (FMs) from leading AI companies.

Leverage Gathr to connect to Bedrock and seamlessly access FMs from top AI companies.

Learn how to authenticate to Amazon Bedrock by setting up connection properties in the Bedrock connection connector.


Prerequisites

Prerequisites for Connecting to Bedrock from Gathr:

  • Ensure you have an AWS account.

  • Create or use an existing IAM role for Gathr to assume.

    Note down the secret and access keys for Gathr connection.

    For detailed information on how to create an IAM role in AWS, click here.

  • Assign the IAM policy/permissions to the role to access Bedrock via Gathr.

    For detailed information on how to create IAM Policy in AWS, click here.

    For detailed information on how to add permissions to an IAM role, click here.

    The minimum required permissions are outlined in the following policy:

    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Sid": "BedrockMinimumForAllModels",
                "Effect": "Allow",
                "Action": [
                    "bedrock:ListFoundationModels",
                    "bedrock:GetFoundationModel",
                    "bedrock:InvokeModel",
                    "bedrock:InvokeModelWithResponseStream",
                    "bedrock:ListTagsForResource",
                    "bedrock:GetModelInvocationLoggingConfiguration"
                ],
                "Resource": [
                    "arn:aws:bedrock:*:632963553276:foundation-model/Amazon",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/Amazon",
                    "arn:aws:bedrock:*:632963553276:foundation-model/AI21 Labs",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/AI21 Labs",
                    "arn:aws:bedrock:*:632963553276:foundation-model/Anthropic",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/Anthropic",
                    "arn:aws:bedrock:*:632963553276:foundation-model/Cohere",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/Cohere",
                    "arn:aws:bedrock:*:632963553276:foundation-model/Meta",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/Meta",
                    "arn:aws:bedrock:*:632963553276:foundation-model/Stability AI",
                    "arn:aws:bedrock:*:632963553276:tag/foundation-model/Stability AI"		
                ]
            }
        ]
    }
    
  • Before using a foundation model, request access to it. Follow the guidelines at Model Access for requesting and gaining access to foundation models.

After ensuring all prerequisites are met, proceed to create a Bedrock connection in Gathr and start leveraging its capabilities.


Connection Configuration

Each connection property available in the Bedrock connection configuration is explained below.

Connection Name

The name of the connection to be created should be provided. This is the name that will display on the list of available connections.


Connect Using

Option to authenticate the Bedrock connection using AWS keys.


AWS KeyId

Enter your AWS account access key.


Secret Access Key

Enter your AWS account secret key.


Region

Select the region for testing Bedrock connection.


Add Configuration: Additional properties can be added using this option as key-value pairs.


After entering all the details, click on the TEST button.

If the connection service identification and authentication details are provided correctly, a success message stating “connection available” is generated.

Click on the CREATE button to save the changes.

If the details are incorrect or the server is down, you will get a message “Connection unavailable”.

Top