Deploy serverless functions to lambda poc
Problem to solve
We offer the ability for users to easily deploy serverless functions to Knative, however, we don't offer the same level of convenience for lambda (the most popular serverless solution today). Lambda users have to configure custom
gitlab-ci.yml, IAM, S3, etc.
TBD - options
- use serverless framework
- use openfaas
Considerations: (from https://gitlab.com/gitlab-org/gitlab-ce/issues/57536):
AWS Lambda requires the user to build a "deployment package". While Lambda can run different languages they don't offer any support for building the deployment package and Lambda users will need to write their own logic for how to turn their source code into a deployment package. If we want to do this for the users then we need to implement this on a per language basis unless there are existing tools that are capable of this. Basically this process can be thought of as a buildpack. Something turning source code into something the platform can execute.
Assuming we support NodeJS will we have a buildpack that is capable of installing dependencies with both Yarn and NPM?