Example Java AWS Lambda function for Eventuate
To install the Eventuate AWS Gateway plugin for Serverless:
When the lambda is deployed, this plugin registers it with Eventuate.
When the lambda undeployed, the plugin unregisters it.
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:
Set the Eventuate environment variables:
To deploy the lambda:
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