serverless-triggers
is a CLI to generate event payloads to help you simulate AWS tool triggers (like SQS, SNS, S3, and others) to test your lambdas locally.
serverless-triggers --help
?> Tip you can use sls-triggers
or slst
as alias.
It is recommended to install serverless-triggers
globally:
yarn global add serverless-triggers
npm i -g serverless-triggers
serverless-triggers init
This command will create the tests/payloads
folder and create an example payload file:
{
"template": "sqs",
"payloads": [
{
"name": "Serverless Triggers"
}
]
}
Read the Usage Guide on our website for detailed instructions on how to use Serverless Triggers CLI.
Check the templates available on the Templates Page
MIT - see LICENSE