For what it is worth, if anyone is looking to test from the CLI, after setting up the lambda and layer on serverless, create a properly formatted .json file with the following payload and then use the command below.
{
"renderRequest": {
"template": {
"name": "template-name-here"
}
}
}
aws lambda invoke --function-name foo-report --payload file://foopayload.json foo-out.txt
Please note the function name, the payload (in json file format) and the text file are all required.
Next up, fronting a secure API...