"errorMessage": "Unknown service: 'bedrock-agent-runtime'.

0

Getting "errorMessage": "Unknown service: 'bedrock-agent-runtime' in lambda function when using with Boto3 in python code.

but able execute aws bedrock-agent-runtime retrieve-and-generate in CLI

import json import boto3 def lambda_handler(event, context): client = boto3.client('bedrock-agent-runtime','us-west') #client = boto3.client(service_name="bedrock-agent-runtime", region_name="us-west-2") response = client.retrieve_and_generate(

1개 답변
0

Hello.

I think the version of boto3 may be old.
Please update the boto3 version to the latest version.

Looking at the changelog below, "bedrock-agent-runtime" has been added since 1.33.2.
So I think you need to make sure your boto3 version is newer than this.
https://github.com/boto/boto3/blob/develop/CHANGELOG.rst

profile picture
전문가
답변함 3달 전
profile picture
전문가
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠