Skip to content

Setting up the Lambda Service

Kate Hall edited this page Dec 29, 2018 · 18 revisions

AWS

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).

AWS Setup

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.

  1. Log into your AWS account.
  2. 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!
  3. Select the Author from scratch card.
  4. Settings:
    1. Name: iComfortLennoxAdapter (can be whatever you like)
    2. Runtime: Node.js 8.10
    3. Role: Create a custom role (this will trigger a new page)
  5. IAM Management Settings:
    1. IAM Role: Create a new IAM role
    2. Role Name: lambda_basic_execution
    3. Click "Allow"
  6. Back on the Lambda Mangament > Author from scratch page, click "Create Function."
    1. Add triggers: Click Alexa Smart Home from the menu on the left.
    2. 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).
    3. Check the box for Enable trigger.
  7. Click "Add" at the bottom of the page, then "Save" at the upper right.
  8. Click the iComfortLennoxAdapter box in the Designer tab (above Layers) to bring up the "Function code" settings.
  9. Under the Function code section of the page, select the following:
    1. Code entry type: Upload a .ZIP file
    2. Runtime: Node.js 8.10
    3. Handler: index.handler
    4. Function package: Upload the zip archive file you created in this step.
  10. 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].

Next

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.