Open tiagob opened 4 years ago
Agreed. I like that. I can handle this. What’s a simple example for an action with a Todo app?
On Tue, Nov 17, 2020 at 10:14 PM Austin Rivas notifications@github.com wrote:
Since you are already providing the pulumi aws provider I think the best way to do this is by provisioning an aws lambda function and api gateway endpoint that is used by a hasura action.
Let me know if you need a hand with this, I have some generic hasura / lambda boilerplate that might be helpful.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tiagob/create-full-stack/issues/53#issuecomment-729513173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH32YS37RZX7K54LS63H2DSQN66VANCNFSM4NMNLLPA .
The easiest action I could think of would be to just provide an echo function that sends back whatever you send it, but if you want something specific to the todo app maybe an email notification on item completion?
I've written some code to extract and validate hasura action body and headers using the codegen types, but I think it might be a little to abstract for a simple example.
Since you are already providing the pulumi aws provider I think the best way to do this is by provisioning an aws lambda function and api gateway endpoint that is used by a hasura action.
Let me know if you need a hand with this, I have some generic hasura / lambda boilerplate that might be helpful.