Serverless Haskell

homepage icon https://github.com/seek-oss/serverless-haskell
Follow @seek-oss

Tracked

NPM Downloads Last Month
442
Issues
5
Stars
126
Forks
14
Watchers
126
Watch Star Fork Issue Download License NPM Build Status Coverage Status Contributors

Repo README Contents:

Serverless Haskell

Build status Hackage Stackage LTS Hackage dependencies npm

Deploying Haskell code onto AWS Lambda using Serverless.

Prerequisites

Usage

There are two ways to start, either via the stack template, or directly modifying a project. You may want to use the manual approach as the template specifies a specific stack resolver as it needs to hardcode the stack.yaml file.

In either case, you will want to have Serverless installed, eg. npm install -g serverless.

Using the stack template

Manually

API Gateway

This plugin supports handling API Gateway requests. Declare the HTTP events normally in serverless.yml and use AWSLambda.Events.APIGateway in the handler to process them.

Serverless Offline can be used for local testing of API Gateway requests.

Notes

See AWSLambda for documentation, including additional options to control the deployment.

Development

Currently, apart from the master branch, an v0.6.x branch is maintained with no breaking changes since 0.6.0, for inclusion into Stackage LTS 12. For bugfixes and new features that do not change the existing behavior, please target v0.6.x. For anything else, target master.

Changes to the LTS branch will be forward ported to the master branch after releasing.

Testing

Integration tests

Integration test verifies that the project can build and deploy a complete function to AWS, and it runs with expected functionality.

Integration test is only automatically run up to deployment due to the need for an AWS account. To run manually:

Releasing