0

I'm trying to build my chatbot using AWS lex and AWS lambda C#.For intent fulfillment i'm not able to communicate with AWS lambda.I asked one related questions here

I'm not sure what are the sequence procedures to communicate to aws lambda from aws-lex.

Please explain.I guess this may be due to some authentication problem.So it would be helpful if you explain what authentication roles should i have to achieve this and I'm not sure about what event mapping should i use for lex and lambda communication.

Note: AWS lex and AWS lambda works fine independently but not able to communicate each other.

Community
  • 1
  • 1
ManirajSS
  • 2,295
  • 5
  • 26
  • 50

2 Answers2

0

AWS automatically adds the required service roles for Lex to call your lambda function when you connect them in the AWS Console.

If you are creating the bot through the CLI or API, you'll need to create these roles manually. More information is available on this page and this page of the AWS Documentation.

Milk
  • 2,469
  • 5
  • 31
  • 54
0

Check that you have AWSServiceRoleForLexBots role attached in your IAM policy. If you have any plan to connect through any layer, it is advised to have cognito manage identity pool.

Palraj
  • 1