Skip to content

Instantly share code, notes, and snippets.

View Moutard3's full-sized avatar
🇫🇷
‪ 

Alexandre "Moutarde" S. Moutard3

🇫🇷
‪ 
View GitHub Profile
@renegoretzka
renegoretzka / README.MD
Last active February 9, 2024 17:01
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: