In the Lambda console, go to the detail page of any function, and select Configure test events from the test events dropdown (the dropdown beside the orange test button). In the dialog box, you can manage 10 test events for your function.
What is a test event in Lambda?
The Test feature provides the ability to define an incoming event record, then invoke the Lambda using that record. You could do the same thing from an AWS CLI call, but you would need to provide the event to pass to the function.
How do you test a Lambda layer?
- cd test-layer.
- ( npm install if you have just cloned the repo)
- npm run start. it simply calls sls offline start.