Follow this guide to deploy Hasura GraphQL (on EC2) on RDS: https://blog.hasura.io/instant-graphql-on-aws-rds-1edfb85b5985
- Create table:
notes
:id: int
,note: text
Create a lambda function in AWS. This will be our webhook.
-
Create a function.
-
Select Python 3.6 as the runtime.
-
Select "start from scratch".
-
Add API gateway as a trigger.
-
Add an API to API gateway.
-
Add the corresponding code and save. The handler function of your lambda will be the
<filename>.handler
.
- In events tab, add a trigger
- Select all insert, update, delete operations for the trigger.
- Paste the API endpoint of your AWS lambda as the webhook.