AWS AppSync to AWS Lambda

AWS AppSync → AWS Lambda

Create an AppSync API with a direct Lambda resolver

This CDK application deploys an AppSync API which uses direct Lambda resolvers. On querying the AppSync API, AppSync will invoke the Lambda function and provides a default payload to your Lambda function as well as a default translation from a Lambda function's response to a GraphQL type.

< 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-direct-lambda-resolver

Deploy

See the GitHub repo for detailed instructions


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Ami Patel

Ami Patel

Cloud Applications Architect @ AWS.

Michael Liendo

Michael Liendo

Senior Developer Advocate | AWS AppSync 🦦

Follow on LinkedIn