Skip to content

eventuate-clients/eventuate-aws-gateway-serverless-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eventuate AWS Gateway Serverless plugin

This is the Serverless plugin for Eventuate AWS Gateway.

System requirements:

  • Node.js v4 or later

Projects that use this plugin

Usage

Put eventuate-aws-gateway-serverless-plugin into plugins section in the serverless.yml

plugins:
  - eventuate-aws-gateway-serverless-plugin

Add Eventuate AWS Gateway configuration for a lambda function. For example:

functions:
  testEventHandler:
    handler: handler.eventHandler
    events:
      - eventuate:
          subscriberId: eventuateGatewayPlugin
          space: test
          entitiesAndEventTypes:
            net.chrisrichardson.eventstore.TestEntity:
              - net.chrisrichardson.eventstore.TestEntityCreated

Required environment variables

EVENTUATE_API_KEY_ID
EVENTUATE_API_KEY_SECRET

serverless.yml custom options

eventuateGatewayUrl
eventuateGatewayJwtToken
eventuateGatewayDebug

Commands

View Eventuate AWS Gateway configuration

sls eventuate-gateway info --gatewayId <gateway ID> --space [space name]

Enable Eventuate AWS Gateway

sls eventuate-gateway enable  --gatewayId <gateway ID> --space [space name]

Disable Eventuate AWS Gateway

sls eventuate-gateway disable  --gatewayId <gateway ID> --space [space name]

Delete Eventuate AWS Gateway

sls eventuate-gateway delete  --gatewayId <gateway ID> --space [space name]

The parameter space is set by default to "default", so can be omitted.

See command usage

sls eventuate-gateway --help
sls eventuate-gateway <command> --help

About

Serverless plugin for the Eventuate AWS Gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published