InvokeModel call over cross-region

0

Bedrock integration of Step Functions is now supported. Calling Claude 2 in us-west-2 from Step Functions in Tokyo region causes an error. I wonder if cross-region is not supported.

the follwing setup in Bedrock model identifier arn:aws:bedrock:us-west-2::foundation-model/anthropic.claude-v2

https://aws.amazon.com/about-aws/whats-new/2023/11/aws-step-functions-optimized-integration-bedrock/

The provided ARN is invalid for the service region (Service: BedrockRuntime, Status Code: 400, Request ID: 78e3a7d3-6284-4a36-8227-88376d71ad3e)

Step function workflow stdio capture

IAM Role Policyはus-west-2のARNを指定するように変更済みです IAM Role

1개 답변
0

Hi s_hiruta,

I am able to reproduce the error you are facing. I did the below testing with a role that has access to all bedrock API calls.

  1. Step function in Tokyo and Bedrock Model in us-east-1: I received the same error as you are getting.

Enter image description here

  1. Step function and Bedrock model in us-east-1: The step function was able to successfully perform the InvokeModel operation.

Enter image description here

Also, if you check the article [1] under “How to get started with Amazon Bedrock and AWS Step Functions” section it specifically mentions that “Before getting started, ensure that you create the state machine in a Region where Amazon Bedrock is available. For this example, use US East (N. Virginia), us-east-1.”

  1. One more observation is that in Step Function Bedrock model identifier selection lists only the models available in that specific region. In the below example only the models from ap-northeast-1 are listed by default.

Enter image description here

So, it looks like step function can only call the InvokeModel API call in the same region where Amazon Bedrock is available.

Article links: [1] https://aws.amazon.com/blogs/aws/build-generative-ai-apps-using-aws-step-functions-and-amazon-bedrock/?trk=f3da5d15-8262-4ccc-b6ac-edb58d9955e7&sc_channel=el

Hope this helps.

AWS
답변함 한 달 전

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

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

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

관련 콘텐츠