Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

proton0210
Copy link
Contributor

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.

@proton0210
Copy link
Contributor Author

Hey Team Any Update ?@julianwood @marakere

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.

1 participant