- Create your lambda function
- Don't forget to create the role like this..
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "iot:*" ], "Resource": "*" } ] } - Set the environment variables
IOT_NAME // "Alexa, ask {IOT_NAME}" IOT_TOPIC // the one you will subscribe on the device IOT_ENDPOINT // you know... xxxxxxxxxxxxx.iot.us-east-1.amazonaws.com IOT_REGION, // the iot region DUH - Define Alexa Skills Kit as trigger
- Write the ARN id (top right corner) in your left hand
-
Go to the Alexa Dev Portal
-
Yes, login again :/
-
"Alexa Skills Kit - Get started >"
-
"Add a New Skill"
-
Set the "Name", "Invocation Name" and go ahead
-
Ok, now pay attention:
{ "intents": [ { "slots": [ { "name": "Command", "type": "LIST_OF_COMMANDS" } ], "intent": "CommandIsIntent" }, { "intent": "AMAZON.HelpIntent" }, { "intent": "AMAZON.StopIntent" }, { "intent": "AMAZON.CancelIntent" } ] }LIST_OF_COMMANDSSomething like...
turn on tv turn off tv be amazing make coffee create a new js frameworkClick "Add"
CommandIsIntent {Command} -
"Next"
-
Service Endpoint Type: AWS Lambda ARN (Amazon Resource Name)
-
Default: check your left hand ;)
-
Next
-
Now you can test in the Test Simulator
Be happy!