简体   繁体   English

Lex 无法访问 Lambda 函数

[英]Lex is unable to access the Lambda function

I am getting this error when i try to add a lambda function for fulfillment in lex:当我尝试在 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

This error is occurring for only one intent out of the ten intents my bot has, while the same fulfillment function is being used for all of them.Where is the cause and How can I resolve this?我的机器人拥有的十个意图中只有一个意图会发生此错误,而所有这些意图都使用相同的实现功能。原因在哪里,我该如何解决这个问题?

The List comes from your lambdas in the same region.该列表来自同一地区的 lambda。 AWS Lambda needs access permission to Lex. 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