AWS AppSync to Amazon Bedrock

AWS AppSync → Amazon Bedrock

Invoke Amazon Bedrock models from AWS AppSync HTTP resolver

This pattern shows how to invoke Amazon Bedrock models from AppSync through HTTP resolvers.
In this pattern the end user is able to provide a query and a role. Based on the role provided (philosopher, schoolteacher or politician), a specific context will be added to the prompt used to invoke an Amazon Bedrock model from within the JS resolver.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/appsync-bedrock

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Alexis Philippart de Foy

Alexis Philippart de Foy

I am a Startup Solutions Architect, Serverless Enthusiast and former startup founder.

Follow on LinkedIn