Skip to content

Bedrock KB as an integration in Amazon Connect - NOT WORKING

0

I created a new Bedrock KB, synced it and tested it. Everything is working fine. I then created a new domain in Amazon Connect instance, added a new integration point using Bedrock KB and once created, it shows as Status = Available. In Agent Workspace - i get an error stating: Could not find Active Association of type KNOWLEDGE_BASE. Using CLI, I listed the associations to the wisdom assistant (it's still called wisdom behind the scenes) and it shows this:
"associationData": { "SDK_UNKNOWN_MEMBER": { "name": "externalBedrockKnowledgeBaseConfig" } }, "associationType": "EXTERNAL_BEDROCK_KNOWLEDGE_BASE" When I add an S3 integration to the domain, it works fine, because the S3 shows as associationType: KNOWLEDGE_BASE. So i think at runtime, Agent Workspace's Assistant (Amazon Q or now called Connect Assistant), is looking for the answer from an association type of KNOWLEDGE_BASE. And since it can't find one (because the Bedrock KB association type is EXTERNAL_BEDROCK_KNOWLEDGE_BASE, it fails. It does not return anything.
So, does anyone know how to fix it? Thank you

1 Answer
1

Based on the configuration details you've provided, the issue appears to be related to how the Bedrock Knowledge Base association is being configured. When integrating an external Bedrock Knowledge Base with Amazon Connect, you need to ensure proper configuration of the ExternalBedrockKnowledgeBaseConfig.

The ExternalBedrockKnowledgeBaseConfig requires two essential components:

  1. accessRoleArn: An IAM role ARN that grants Amazon Connect permission to access your external Bedrock Knowledge Base. This role must follow the pattern arn:aws:iam::[0-9]{12}:role/(?:service-role/)?[a-zA-Z0-9_+=,.@-]{1,64} and is a required parameter.

  2. bedrockKnowledgeBaseArn: The ARN of your Bedrock Knowledge Base, which must follow the pattern arn:aws(|-cn|-us-gov):bedrock:[a-zA-Z0-9-]*:[0-9]{12}:knowledge-base/[0-9a-zA-Z]+ and is also required.

The "SDK_UNKNOWN_MEMBER" error in your CLI output suggests that the association configuration may not be properly formed or the SDK version you're using might not fully recognize the external Bedrock Knowledge Base configuration structure.

To resolve this issue, verify that:

  • The IAM role specified in accessRoleArn has the necessary permissions to access your Bedrock Knowledge Base
  • Both the accessRoleArn and bedrockKnowledgeBaseArn are correctly formatted and provided during the association creation
  • Your Amazon Connect instance is in a region where both Amazon Connect AI agents and Amazon Bedrock Knowledge Bases are supported
  • The integration was created with all required configuration parameters properly specified

If the issue persists after verifying these configurations, you may need to recreate the association ensuring all required parameters are correctly provided during the setup process.
Sources
ExternalBedrockKnowledgeBaseConfig - Amazon Connect
AssistantAssociationInputData - Amazon Q in Connect
Amazon Connect now supports multiple knowledge bases and integrates with your Amazon Bedrock Knowledge Bases - AWS

answered a month ago
EXPERT
reviewed 25 days ago
  • Both accessRoleArn and bedrockKnowledgeBaseArn are configured properly. The Amazon Connect is in the same region as the Bedrock KB is in. All required parameters were configured correctly.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.