官术网_书友最值得收藏!

Building and configuring the Lambda

Now that the function is completed, we can use the build script that we made in Chapter 2, Getting Started with AWS and Amazon CLI. Run the ./build.sh hello-alexa-skill command to create our Lambda and deploy it to AWS.

When the build script finishes, navigate to your Lambda console in AWS and you should now see your newly created function. Click on this new hello-alexa-skill Lambda to open up the editor.

To allow this Lambda to be triggered by an Alexa Skill, we need to add Alexa Skills Kit as a trigger. This is done by clicking on Alexa Skills Kit in the designer under Add triggers, creating an Alexa Skills Kit trigger appears in the main designer screenshot:

Adding an Alexa Skills Kit trigger

This also opens the Alexa Skills Kit configuration section. Here, we need to provide the Alexa App ID for our skill. To find this, open the Alexa Skill Kit console, go to Endpointand choose Lambda. This will open up a few extra details and options. Our Skill ID is the first bit of information and can be copied to our clipboard and inserted into our Lambda configuration:

Skill endpoint configuration

Before exiting the Lambda editor, we should find the ARN in the upper-right corner of the editor screen. Copy this as we'll need it for the last step in configuring the skill.

主站蜘蛛池模板: 尼玛县| 民丰县| 阿图什市| 江源县| 密山市| 靖江市| 栖霞市| 阿鲁科尔沁旗| 潢川县| 遂平县| 五常市| 塔城市| 武夷山市| 章丘市| 华坪县| 东乌珠穆沁旗| 元江| 武平县| 普洱| 玉环县| 洪雅县| 磴口县| 石首市| 岗巴县| 满城县| 铁岭市| 内黄县| 红原县| 中阳县| 太仆寺旗| 当涂县| 宜州市| 鹤庆县| 西乡县| 琼结县| 息烽县| 略阳县| 泽库县| 紫金县| 梧州市| 长顺县|