README
¶
Go Echo Example for AWS Lambda
Setup tables
- Create table:
notes:
id: Integer (auto-increment)
note: Text
Primary key: id
Setup AWS Lambda
Create a Lambda function in AWS. This will be our webhook.
- Sign in to the AWS Management Console and open the AWS Lambda console.
- Choose "Create a function" under the Get Started section.
- Select "Author from scratch".
- Specify the Name for your lambda.
- Select go 1.x as the Runtime.
- In Role choose Create new role from template(s)
- In Role name, enter a name for your role, leave the Policy Templates field blank.
- Build and upload the code to AWS Lambda:
i. Run the bash script provided
bash build.sh
ii. Upload echo.zip in the lambda console. 10. Click the save button for the changes to take effect. 11. Create an API with a lambda proxy integration as specified in the AWS Documentation.
Add the trigger in Hasura GraphQL
- 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.
Documentation
¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.