-
Notifications
You must be signed in to change notification settings - Fork 6
Amazon Lambda
A Lambda function need to be set up to process the directives receive from Alexa Skill.
Folder \lambda-function\alexa-smart-home-skill are the lambda function code.
Steps:
-
Go to AWS Lambda Console in AWS cloud https://console.aws.amazon.com/lambda
-
Click on "Create Function"
-
Select "Author from scratch" and fill in a name for the Lambda function. Select "Node.js 6.10" for "Runtime"
-
Select a Role for the Lambda function (user can create a Role in IAM, the role need to have policy "AWSLambdaFullAccess" and "CloudWatchLogsFullAccess")
-
After Create the Lambda function , user can upload the function code. As the fucntion code inlcude a number of files, user can upload the code as a zip file
- Select "Upload a .ZIP file" at "Code entry type"
- Select \lambda-function\alexa-smart-home-skill\alexa-smart-home-skill.zip and upload
-
Add triggers "Alexa Skill Kit" like below screen:
-
Fill in the skill ID and enable the skill in skill configuration (Skill ID can be found in Alexa Skill configuration page https://developer.amazon.com/alexa)