Serverless Function Gateway

homepage icon https://github.com/KennethWussmann/serverless-function-gateway
Follow @KennethWussmann

Tracked

NPM Downloads Last Month
2
Issues
0
Stars
0
Forks
0
Watchers
0
Watch Star Fork Issue Download License NPM Build Status Coverage Status Contributors

Repo README Contents:

serverless-function-gateway

serverless

Plugin for the serverless framework that pushes your AWS Lambda functions to your selfhosted function-gateway.

Installation

sls plugin install --name serverless-function-gateway 

Usage

service: test
provider:
  name: aws
  runtime: java8
  region: eu-central-1

custom:
  # New settings of this plugin:
  function-gateway:
    # Where is your function-gateway reachable (make sure to have Webhook resolver enabled)
    endpoint: "https://api.example.com/webhook"
    # Optional secret, if enabled in function-gateway
    #secret: "123456"
    # Optional stage used for all functions (if not set, serverless' stage will be used)
    #stage: dev

plugins:
  # Declare this plugin as installed (should be added by default by running above command)
  - serverless-function-gateway

functions:
  testEndpoint:
    handler: com.example.lambda.TestEndpoint
    events:
    # New event type of this plugin:
    - route:
        # What path should invoke this function?
        path: /example
        # What http method should be used to invoke?
        method: GET
        # Optional stage of this single function (if not set, custom.function-gateway.stage will be used)
        #stage: dev