1.0.3 • Published 5 months ago

serverless-tinyfaas v1.0.3

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

serverless-tinyfaas

The serverless project aims to simplify the development (among others) of serverless applications. TinyFaaS is a serverless platform for edge environments. This plugin allows the serverless framework to be able to deploy function on tinyFaaS nodes.

Deploying functions

Assuming the serverless framework is already installed, you just need to get this plugin via npm to get started.

npm i serverless-tinyfaas

Next, add your tinyFaaS functions and nodes to the serverless.yml. Here's an example configuration. This can be appended to an existing serverless.yml to combine the tinyFaaS functions with other providers.

custom:
  tinyfaas:
    functions:
      - name: "fibonacci"
        env: "nodejs"
        threads: 1
        source: "./functions/fibonacci"
        deployTo:
          - name: "tinyFaaS-node-0"

    nodes:
      - name: "tinyFaaS-node-0"
        url: "http://localhost:8080"

plugins:
  - serverless-tinyfaas

Now, run the following command to deploy your functions to your tinyFaaS nodes.

serverless deploy

Note that a function can be deployed to multiple tinyFaaS nodes by adding more node-names to the deployTo list.

Local development

To work on this plugin locally, (1) download the src/index.js file and (2) replace serverless-tinyfaas in the serverless.yml with the path to the index.js file.

1.0.2

5 months ago

1.0.3

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago