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 and a Lambda function. The Lambda function is added as a data source for the API and the API uses it as a direct Lambda resolver.
On querying the AppSync API, AppSync invokes the Lambda function and provides 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

cdk deploySee the GitHub repo for detailed instructions


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

To delete the stack, run: cdk destroy.

Created by:

Ami Patel

Ami Patel

Cloud Applications Architect @ AWS.