wai-lambda icon indicating copy to clipboard operation
wai-lambda copied to clipboard

Guidence for AWS lambda and API Gateway

Open o1lo01ol1o opened this issue 6 years ago • 1 comments

Hi, could you provide some guidance on building and deploying, even in a trivial sense, a servant application using wai-lambda?
Thanks

o1lo01ol1o avatar Jun 21 '19 03:06 o1lo01ol1o

Sure! I'll provide a more verbose answer later but here's some inspiration (for building and deploying with Nix and Terraform):

Building the lambda: https://github.com/deckgo/deckdeckgo/blob/3f5a9202a05699c2275e489f826b42d74a82955c/infra/default.nix#L4-L15

Deploying: https://github.com/deckgo/deckdeckgo/blob/3f5a9202a05699c2275e489f826b42d74a82955c/infra/lambda.tf#L49-L54 https://github.com/deckgo/deckdeckgo/blob/3f5a9202a05699c2275e489f826b42d74a82955c/infra/lambda.tf#L3

nmattia avatar Jun 21 '19 07:06 nmattia