1.0.3 • Published 7 years ago
generator-alexa-lambda v1.0.3
A Yeoman generator that allows you to quickly create and deploy an AWS Lambda function for your Alexa skill.
Prerequisites
- Create an Alexa Skill in Amazon Developer Services.
- Create a Lambda function in Amazon Web Services.
Configure them to work together. Here's how.
Once configured, you'll need to develop the actual AWS Lambda function. That's where this package comes to the rescue!
Installation
Using npm:
npm install -g yo
npm install -g generator-alexa-lambda
Usage
Generate Project
yo alexa-lambda
This will scaffold a project folder that has everything you need to develop and deploy an AWS Lambda function for your Alexa Skill. It works out of the box.
Develop
Develop your Alexa Skill's intent handlers in index.js
using the aws-sdk package, which is pre-installed by this generator.
Create and include new JavaScript files and npm packages in your project as you like. The deploy command will include and upload all of them to your AWS Lambda function.
Deploy
npm run deploy