【发布时间】:2018-06-13 08:02:17
【问题描述】:
您好,我正在使用 Aws Lex 和 lambda 构建聊天机器人。 我正在使用 lexmodelbuildingservice.putIntent API 来创建新的 Intent。但是当我测试我的 Lambda 函数时。我收到以下错误:
BadRequestException: Lex is unable to access the Lambda function arn:aws:lambda:us-east-1:XXXXXXXXXXXX:function:chatBotResponse in the context of intent arn:aws:lex:us-east-1:XXXXXXXXXXXX:intent:BenefitsTwotwo:$LATEST. Please check the resource-based policy on the function
我在参数中使用以下代码:
fulfillmentActivity: {
codeHook: {
uri: "arn:aws:lambda:us-east-1:XXXXXXXXXXXX:function:chatBotResponse",
messageVersion: "1.0"
},
type: "CodeHook"
}
谁能告诉我如何使用 nodejs 访问和启用 lambda arn。
谢谢!
【问题讨论】:
标签: node.js amazon-web-services aws-lambda aws-sdk amazon-lex