繁体   English   中英

Lex 无法访问 Lambda 函数

[英]Lex is unable to access the Lambda function

当我尝试在 lex 中添加用于实现的 lambda 函数时出现此错误:

Lex is unable to access the Lambda function arn:aws:lambda:us-east-1:843706464800:function:OrgbotFulfillment in the context of intent arn:aws:lex:us-east-1:843706464800:intent:Add:$LATEST. Please check the resource-based policy on the function

我的机器人拥有的十个意图中只有一个意图会发生此错误,而所有这些意图都使用相同的实现功能。原因在哪里,我该如何解决这个问题?

该列表来自同一地区的 lambda。 AWS Lambda 需要 Lex 的访问权限。

aws lambda add-permission --function-name <lambda_name> --statement-id chatbot-fulfillment --action "lambda:InvokeFunction" --principal "lex.amazonaws.com"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM