Skip to content
Serverless Framework plugin to announce function endpoints to function-gateway
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
package.json

README.md

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
You can’t perform that action at this time.