Example Java AWS Lambda that subscribes to http://eventuate.IO events
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
package.json
serverless.yml
settings.gradle

README.md

Example Java AWS Lambda function for Eventuate

This is a simple Serverless framework-based AWS lambda function that illustrates how to subscribe to events published by Eventuate SaaS.

To install the Eventuate AWS Gateway plugin for Serverless:

npm install

When the lambda is deployed, this plugin registers it with Eventuate. When the lambda undeployed, the plugin unregisters it. See the serverless.yml for the details of how the events of interest are specified.

This particular lambda subscribes to events published by the Todo List Application.

To build the lambda:

./gradlew buildZip

Set the Eventuate environment variables: EVENTUATE_API_KEY_ID and EVENTUATE_API_KEY_SECRET.

To deploy the lambda:

serverless deploy

Events published by the Todo List Application will now be delivered to this lambda. You could, for example, run build-and-test-all.sh to generate events.

You can verify that the lambda has been invoked by looking at the logs:

serverless logs -f todoEchoLambda