Skip to content

Pattern update - apigw-lambda-bedrock-cdk-python #2723

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

Merged
merged 5 commits into from
Apr 29, 2025

Conversation

Sliiiin
Copy link
Contributor

@Sliiiin Sliiiin commented Apr 22, 2025

Issue #, if available:
Prior to this change the Lambda Function would fail requests to Amazon Bedrock when Anthropic Claude 3 or Anthropic Claude 3.5 Models were chosen for the requests.

Description of changes:
Lambda function has been updated with Anthropic Claude Messaging API and Lambda IAM Role has been edited to invoke other models due to a wildcard. Changes have been reflected in the README.

@@ -18,7 +18,7 @@ Important: this application uses various AWS services and there are costs associ
## Amazon Bedrock setup instructions
You must request access to a model before you can use it. If you try to use the model (with the API or console) before you have requested access to it, you receive an error message. For more information, see [Model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html).

1. In the AWS console, select the region from which you want to access Amazon Bedrock. At the time of writing, Amazon Bedrock is available in us-east-1 (N. Virginia) and us-west-2 (Oregon) regions.
1. In the AWS console, select the region from which you want to access Amazon Bedrock. At the time of writing, Amazon Bedrock is available in most major regions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. In the AWS console, select the region from which you want to access Amazon Bedrock. At the time of writing, Amazon Bedrock is available in most major regions.
1. In the AWS console, select the region from which you want to access Amazon Bedrock. At the time of writing, Amazon Bedrock is available in most regions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update the title as well to include full service names, e.g. Amazon API Gateway.

@Sliiiin
Copy link
Contributor Author

Sliiiin commented Apr 29, 2025

Title and Service Names have been adjusted. Architecture has been updated with up-to-date Icons and Services Names.

@bfreiberg
Copy link
Contributor

Looks good, thank you for your contribution.

@bfreiberg bfreiberg merged commit a7268e6 into aws-samples:main Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants