1.0.0 • Published 5 years ago

serverless-function-gateway v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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