How to set a AWS lambda trigger to Alexa Skills programatically

后端 未结 1 1631
忘了有多久
忘了有多久 2021-02-09 04:56

I\'d like to set the trigger of an AWS lambda that uses Alexa events to run the trigger, but I can\'t find anything in the SDK documentation.

Does anybody know? I would

1条回答
  •  无人共我
    2021-02-09 05:19

    I have found it. Thanks to this Amazon Developer Forum Article

    You need to use the add-permission. Here is a CLI example, but the same parameters worked for me using the node.js SDK:

    aws --region us-east-1 lambda add-permission \
    --function-name FUNCTIONAME \
    --statement-id "1234" \
    --action "lambda:InvokeFunction" \
    --principal "alexa-appkit.amazon.com"
    

    0 讨论(0)
提交回复
热议问题