-
Notifications
You must be signed in to change notification settings - Fork 7
Setting up the Lambda Service
Kate Hall edited this page Dec 29, 2018
·
18 revisions
For this step, you'll need an AWS (Amazon Web Services) account. This service is free for low usage (which, if this is all you use AWS for, you're good).
I'm copying these steps from the Amazon Developer instructions. If you get stuck, I suggest you check them to see if I fudged something up. I'm only noting settings that need modifications from the defaults. If you don't see it here, don't change it.
- Log into your AWS account.
-
Create a new Lambda function in the
us-east-1 (N. Virginia)
region (link does this automagically). Not in North America? See the above developer instructions! - Select the Author from scratch card.
- Settings:
-
Name:
iComfortLennoxAdapter
(can be whatever you like) -
Runtime:
Node.js 8.10
-
Role:
Create a custom role
(this will trigger a new page)
-
Name:
- IAM Management Settings:
-
IAM Role:
Create a new IAM role
-
Role Name:
lambda_basic_execution
- Click "Allow"
-
IAM Role:
- Back on the Lambda Mangament > Author from scratch page, click "Create Function."
-
Add triggers: Click
Alexa Smart Home
from the menu on the left. - Scroll down, and paste the Skill ID you copied from your Developer Portal Alexa Smart Home Skill. This should look something like
amzn1.ask.skill.[bunch-o-letters-and-numbers]
. (See here for where to get the App ID). - Check the box for Enable trigger.
-
Add triggers: Click
- Click "Add" at the bottom of the page, then "Save" at the upper right.
- Click the iComfortLennoxAdapter box in the Designer tab (above Layers) to bring up the "Function code" settings.
- Under the Function code section of the page, select the following:
-
Code entry type:
Upload a .ZIP file
-
Runtime:
Node.js 8.10
-
Handler:
index.handler
- Function package: Upload the zip archive file you created in this step.
-
Code entry type:
- Leave everything else as-is, scroll to the top and and click Save. This step can take a while, be patient!
In the upper-right corner of the page there will be a long ARN that looks something like arn:aws:lambda:us-east-1:[numbers]:function:[yourFunctionName]
.
Step 4: Copy the ARN to the clipboard and go back to your browser's Developer Skill tab to complete the Smart Home Skill setup.