Boto3 - Unknown Service 'Bedrock'

0

Trying to use Bedrock following the release today and despite being on the latest version of boto3 I get the error from this code.

`import boto3 import json

bedrock = boto3.client( service_name='bedrock', region_name='us-east-1' )

bedrock.list_foundation_models()`

UnknownServiceError: Unknown service: 'bedrock'.

Running Mac OS X

Boto3 Version: 1.28.56

Botocore version: 1.31.56

AWS CLI version: aws-cli/2.13.22 Python/3.11.5 Darwin/22.6.0 exe/x86_64 prompt/off

質問済み 8ヶ月前6253ビュー
1回答
0
承認された回答

Turns out boto3 1.28.57 was released at the same time as me posting this. Upgrading solved the issue.

回答済み 8ヶ月前
profile pictureAWS
エキスパート
レビュー済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ