How to configure AWS Bedrock in AI Assistant inside Elastic Cloud?

I am trying to configure AWS Bedrock in AI Assistant inside Elastic Cloud.

By default the only empty sections are Access key and Secret. I just opened a new AWS account and I got access to Claude 3.5 Sonnet that is the default AWS Bedrock model that is in the default options of Elastic Cloud. I was authorized to use the model and Claude 3.5 Sonnet is working properly inside AWS in the playground. I have OpenAI and Google Gemini working inside Elastic Cloud. What can I do? I have created two keys in AWS and none of them are working. This is the error that I am getting:

Finally, Claude 3.5 Sonnet suggested this JSON policy but it is not working. I tried with a broader policy and it did not work as well.

> {
>     "Version": "2012-10-17",
>     "Statement": [
>         {
>             "Effect": "Allow",
>             "Action": [
>                 "bedrock:InvokeModel",
>                 "bedrock:ListFoundationModels"
>             ],
>             "Resource": "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0"
>         }
>     ]
> }

Hi, did you follow the instructions here?

We highlight some additional permissions which you did not include in your policy.

James

1 Like

Thank you, James! I am your big fan! I always watch your videos! Your advice helped me a lot. I did everything that you mentioned, and it was not working. At the end, I figured out that the problem was that Elastic was in one AWS region, and my account was in a different region. That was the problem. Amazing, right? However, the AWS Bedrock connector inside Elastic Cloud is working now!!! I appreciate your help!

Great to hear, and thank you for the kind words!

1 Like