Closed rogervanwile closed 7 years ago
Hi @rogervanwile,
sam local start-api
starts a local API Gateway, for testing functions that have API event sources.
Your example above doesn't have any events with Type: Api
, so you should use sam local invoke
instead, which just invokes a single function from the command line.
I try to run a lambda function for a alexa skill locally.
I'm using this template, found here https://github.com/awslabs/aws-sam-local/blob/develop/test/templates/sam-official-samples/alexa_skill/template.yaml
But the startup fails with following output:
What does it mean?
My index.js is running fine in lambda: