Skip to content

Latest commit

 

History

History
90 lines (41 loc) · 2.44 KB

deploy-sample-skill.md

File metadata and controls

90 lines (41 loc) · 2.44 KB

AWS & ASK CLI Setup Guide

AWS Account | AWS CLI | AWS CLI Profile | Amazon Developer Account | ASK CLI | ASK CLI Profile | Deploy a Skill

Create your first skill

If you are here it means that you have:

An AWS Account (if not, follow the guide to Create a new AWS Account)

The AWS CLI Installed (if not, follow the guide to install AWS CLI)

An Amazon Developer Account (if not, follow the guide to Create a new Amazon Developer Account)

The ASK CLI Installed (if not, follow the guide to install ASK CLI)

An ASK CLI Profile (if not, follow the guide to setup a ASK CLI Profile)

The sample uses

  • The Node.js framework for the skill code (using Alexa Skills Kit (ASK) SDK for Node.js)
  • AWS Lambda to host the skill

1 – Create a new skill

In this step, you will get a copy of the sample skill code on your local computer and prepare a deployment package (a zip file that you create out of the Hello World skill code) to upload to Lambda in the next step.

  1. Initialize the ASK CLI
ask new

It will ask you for a skill name, choose whatever (e.g. hello-world)

cd hello-world

2 – Deploy The Sample Skill to Your Account

Once the ASK CLI is configured, it will create the skill and associated Lambda function.

Deploy the skill and associated function with the following command:

ask deploy

3 – Test the Skill

The skill can be invoked and tested on an Echo device as well.

  1. Login to the Alexa Developer Console.

  2. Find your new skill in the Skills list, and select Edit.

    skills-list

  3. Click the Test tab.

    test-tab

  4. Enable Test for the skill by clicking the Test switch in the top left.

    test-switch

Now you can use any Echo device logged in to the same developer account to test the skill:

“Alexa, open hello world.”

🏆 Congratulations - You Have Completed The AWS/CLI Setup Guide! 🏆