Skip to content

Instantly share code, notes, and snippets.

@renegoretzka
renegoretzka / README.MD
Last active May 11, 2024 07:17
Example to invoke AppSync from AWS Lambda

How to access an AppSync Endpoint from a Lambda function

Setup in project

Run amplify add function and go thru the manual configuration and add access to other resources. Add API here. Run amplify update api if you have a project already setup and configure IAM as an additional auth mode.

Setup in schema.graphql

Add the authorization as following to your type definition: