【发布时间】:2019-07-10 01:25:49
【问题描述】:
我似乎无法弄清楚如何让功能正常的 Alexa 技能 lambda 函数在本地运行。使用 ngrok Amazon 正确连接到我正在运行的 sam 容器,但我得到的只是一个导致 404 的 POST /。
我从 Alexa 的 AWSLABS sam 存储库中复制了一个示例:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Demonstrates a basic skill built with the Amazon Alexa Skills Kit.
Parameters:
TopicNameParameter:
Type: String
Resources:
alexaskillskitcolorexpert:
Type: 'AWS::Serverless::Function'
Properties:
Handler: index.handler
Runtime: nodejs8.10
CodeUri: .
Description: Demonstrates a basic skill built with the Amazon Alexa Skills Kit.
MemorySize: 128
Timeout: 3
Policies:
- SNSPublishMessagePolicy:
TopicName: !Ref TopicNameParameter
Events:
AlexaSkillEvent:
Type: AlexaSkill
【问题讨论】:
标签: amazon-web-services alexa-skills-kit aws-sam-cli