Example of a Lambda service that uses the Rules Machine library.
To keep this example simple, rules are hard-coded in the /rules/app-rules.ts file.
In order to deploy the example, you need to run the following command:
serverless deployAfter running deploy, you should see output similar to:
Deploying rules-machine-service to stage dev (us-east-1)
✔ Service deployed to stack rules-machine-service-dev (112s)
functions:
rules: rules-machine-service-dev-rules (806 B)After successful deployment, you can invoke the deployed function by using the following command:
serverless invoke --function rulesYou can invoke your function locally by using the following command:
serverless invoke local --function rules