- #Npm install serverless verison install
- #Npm install serverless verison update
- #Npm install serverless verison manual
- #Npm install serverless verison code
#Npm install serverless verison code
#Npm install serverless verison install
Npm install -save serverless version of the NPM package to install must match the version of theĬreate serverless.yml with the following contents: service: myservice The serverless-haskell plugin: cd mypackage Initialise a Serverless project inside the Stack package directory and install
LTS 10-17 are supported, older versions are likely to work too but untested. This should invoke serverless locally and display output once everything has built.Ĭreate a Stack package for your code: stack new mypackage Install the dependencies and build the project: cd mypackage You should pick either the latest resolver, or one you have used before and have thus prebuilt many of the core packages for. This is hardcoded as the resolver number is not known at template interpolation time.
#Npm install serverless verison update
Update the resolver in the stack.yaml file. Using the stack templateĬreate a Stack package for your code: stack new mypackage In either case, you will want to have Serverless installed, eg.
#Npm install serverless verison manual
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. There are two ways to start, either via the stack template, or directly modifying a project. Last success reported on ĭeploying Haskell code onto AWS Lambda using Serverless.