aws-lambdaalexa-skills-kitjovo-framework

Jovo Alexa: jovo deploy says Trigger settings for the lambda is invalid


I am creating an Alexa skill using JOVO framework. I have completed the following steps on Amazon Alexa console:

  1. Created a new skill in AWS Alexa console
  2. Created a function in Lambda console
  3. Under endpoints of the skill added the Lambda arn.
  4. Added an Alexa Skill Kit trigger in the above lambda function and added the Skill ID
  5. Saved endpoints successfully.

Local setup:

$ jovo new WeatherService
$ cd WeatherService
$ code .
$ ask init
selected ask defualt. Logged in through IAM console in browser $ jovo build --platform alexaSkill

Up to this everything works fine. So I went on to deploy the skill by the following command:

$ jovo deploy

When the Lambda was trying to deploy, I get the following message:

The trigger setting for the Lambda arn:aws:lambda:us-east-1:880731272882:function:MyWeatherTeller is invalid

Out of curiosity, I ran the same command $jovo deploy and this time it is a different error message:

askApiUpdateSkill:Resource not found

What I am doing wrong?

Below are screenshots of the console setup:

Function setup: enter image description here

Skill endpoint setup: enter image description here


Solution

  • In a newly created Jovo project, the $ jovo deploy command creates a new Alexa Skill project.

    This new project has a different Skill ID than the Skill project you've created by hand. This is why your trigger (which only accepts 1 Skill ID if verification is enabled) is complaining.

    If you don't want to create a new Skill project with the deploy command, you can also add the current Skill ID to your project.js (learn more here) file:

    alexaSkill: {
        nlu: 'alexa',
        skillId: 'yourSkillId',
    },
    

    Then run the two commands again:

    $ jovo build
    $ jovo deploy