AWS Account | AWS CLI | AWS CLI Profile | Amazon Developer Account | ASK CLI | ASK CLI Profile | Deploy a 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
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.
- Initialize the ASK CLI
ask new
It will ask you for a skill name, choose whatever (e.g. hello-world)
cd hello-world
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
The skill can be invoked and tested on an Echo device as well.
-
Login to the Alexa Developer Console.
-
Find your new skill in the Skills list, and select Edit.
-
Click the Test tab.
-
Enable Test for the skill by clicking the Test switch in the top left.
Now you can use any Echo device logged in to the same developer account to test the skill:
“Alexa, open hello world.”