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
Turns out boto3 1.28.57 was released at the same time as me posting this. Upgrading solved the issue.
로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.
좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.