Serverless plugin to support Alexa Lambda events
This plugins compiles the Alexa Skills Kit events to a CloudFormation resource.
It requires Serverless 1.0 or later.
Compile Alexa Skills Kit Events hooks into the
It loops over all functions which are defined in
serverless.yaml. For each function that have Alexa
events defined, a lambda permission for the current function is created which makes is possible to invoke the
function when the skill is spoken.
Take a look at the Event syntax examples below to see how you can setup an Alexa Skills Kit event.
The resource is then merged into the
Enable Alexa Skills Kit event:
# serverless.yaml functions: greet: handler: handler.hello events: - alexaSkillsKit
It may require creating a separate policy to be linked, will have to investigate. The plugin accepts the value and supplies it to CloudFormation, but it currently fails.
Configure Alexa Smart Home event:
# serverless.yaml functions: greet: handler: handler.hello events: - alexaSmartHome: amzn1.ask.skill.12345678-1234-4234-8234-9234567890AB