-
Notifications
You must be signed in to change notification settings - Fork 996
New serverless Pattern - cognito-appsync-bedrock #2740
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
base: main
Are you sure you want to change the base?
New serverless Pattern - cognito-appsync-bedrock #2740
Conversation
Hey Team Any Update ?@julianwood @marakere |
Hi, sorry, we had an automation glitch in assigning this. It's now in the queue for evaluation |
Any update @biswanathmukherjee ? |
Hi @proton0210 , |
Hey @biswanathmukherjee ,Great question
|
Any update @julianwood @biswanathmukherjee |
cognito-appsync-bedrock/README.md
Outdated
@@ -0,0 +1,97 @@ | |||
# AWS AppSync and Amazon Cognito to Amazon Bedrock via Lambda Resolver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS Lambda
## Architecture | ||
|
||
This pattern sets up an AWS AppSync GraphQL API configured with Amazon Cognito User Pools for authentication. Authenticated users can send a prompt through a GraphQL mutation (`invoke`). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a diagram to explain the flow.
@@ -0,0 +1,57 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this file is not updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please tell me what needs to be updated here @biswanathmukherjee?
Added AWS Lambda
AWS Lambda
for cdk subfolder
This sample pattern demonstrates a secure GraphQL API using AWS AppSync with Amazon Cognito for authentication, which invokes Amazon Bedrock foundation models via an AWS Lambda resolver.
Users authenticate with Cognito, then send prompts via an AppSync mutation. A Node.js Lambda resolver, using the AWS SDK for JavaScript (v3), calls the configured Bedrock model (e.g., Anthropic Claude 3 Sonnet) and returns the response.
This pattern, deployed via AWS CDK, provisions an Amazon Cognito User Pool, an AWS AppSync API, an AWS Lambda function, and necessary IAM roles.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.