3
votes

I'd like to make use of AWS Lambda's versioning and aliases for managing code which is linked to an Alexa Skill.

Therefore, I have two aliases PROD and UAT (pretty much as described in the AWS Documentation).

However - If I try to configure the ARN of one of my aliases (e.g. arn:aws:lambda:eu-west-1:1234567:function:Alexa-Skill:PROD) to be the endpoint for an Alexa skill in the Amazon Developer Console I get the following error:

Error: Please make sure that "Alexa Skills Kit" is selected for the event source type of arn:aws:lambda:eu-west-1:1234567:function:Alexa-Skill:PROD

The unqualified ARN (i.e. arn:aws:lambda:eu-west-1:1234567:function:Alexa-Skill) works fine.

Is this a known limitation of the integration between Alexa Skills Kit and Lambda?

1
Have you added Alexa as a trigger for your alias?Yeshodhan Kulkarni
Agree with the above comment. The Alexa Skills Kit trigger type may not be associated with your PROD alias; this can happen when you create a new alias or version. Double check that and re-apply it if it is missing.Anthony Neace
@YeshodhanKulkarni - you are quite right: I'd assumed that the triggers for the unqualified function also get applied to the Alias, but they don't. I added the trigger in the configuration and it works now. If you add this as an answer I'm happy to accept it. Thanks!bunnmatt
@bunnmatt great! Ive added my answer.Yeshodhan Kulkarni
A good source of info for this question: github.com/rgraciano/echo-sonos/issues/138entpnerd

1 Answers

7
votes

You will need to add the Alexa Skill as the trigger for the Lambda function alias for this to work.