Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Repository files navigation

Quick start

  1. Set up your project to use AWS Lambda by following the instructions on theaws-lambda-haskell-runtime website.
  2. Use thewaiHandler 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

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp