-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing Amazon Bedrock Models Across Regions #7965
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our documentation repository for content and documentation updates. |
@markramrattan you should be able to switch the region on the bedrock client to call a model in a different region.
|
I've added the region now via the bedrock client. Though the lambda function generated is in eu-west-1 (as the project is located there) and i'm getting the same errors. Will try some more debugging tomorrow, any other ideas on how to get it to work is appreciated. |
Hey @markramrattan, the issue doesnt appear to be a region issue as you would receive a permissions error. The error seems to be from the code in the handler I would suggest adding a console logs and verifying the cloudwatch logs to verify if the logs are being printed. |
Hey, i'll try that, though i'm using / following the same code from the guide: https://docs.amplify.aws/nextjs/build-a-backend/data/custom-business-logic/connect-bedrock/ |
You should add Inference example in the doc |
@markramrattan Amplify AI kit has been recently released providing support your AI use cases: https://docs.amplify.aws/react/ai/ @pierresisson the cross region inference example is currently being tracked on #8121. closing this issue, do open a issue on Amplify backend repository if you are facing any issues |
Environment information
Describe the feature
I would like to access Amazon Bedrock Gen A.I. models across regions using Amplify Gen 2.
My project is located in eu-west-1. There are only 12 models available in eu-west-1. For context there are 34 Models available in us-east-1 (where all the magic happens)
Use case
My current application is deployed in eu-west-1(Ireland). However the models i'd like to use are available in us-east-1(N. Virginia).
I can't access models like Stability A.I. - SDXL 1.0 in eu-west-1. I'd like to provide users with better image generation (within my eu-west-1 project).
The docs show this guide: https://docs.amplify.aws/nextjs/build-a-backend/data/custom-business-logic/connect-bedrock/
If your project is located not in us-east-1 it fails to use bedrock models cross regions. Would be good to have this cross region feature in AWS Amplify Gen2 with updated docs that show how to integrate cross-region inference.
The text was updated successfully, but these errors were encountered: