- Notifications
You must be signed in to change notification settings - Fork5
Seamlessly deploy your existing Wai application on AWS Lambda.
License
NotificationsYou must be signed in to change notification settings
eir-forsakring/aws-lambda-haskell-runtime-wai
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Set up your project to use AWS Lambda by following the instructions on theaws-lambda-haskell-runtime website.
- Use the
waiHandler
function fromAWS.Lambda.Wai
to convert yourwai
application to a handler. There are two ways to do this.
-- 1. Pass in the initializeApplicationFunction-- this will call initializeApplication per each callhandler::WaiHandler()handler= waiHandler initializeApplication-- Wai application initialization logicinitializeApplication::IOApplicationinitializeApplication=...
-- 2. Store the Application inside your custom context and provide a getter function-- this will initialize the application once per cold start and keep it alive while the lambda is warmhandler::WaiHandlerMyAppConfighandler= waiHandler' getWaiAppdataMyAppConfig=MyAppConfig{getWaiApp::Application}
For a complete example seetheam/aws-lambda-haskell-runtime/tree/master/examples/wai-app
About
Seamlessly deploy your existing Wai application on AWS Lambda.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.