question

Arthur Vernon avatar image
Arthur Vernon asked

Setup of an existing Alexa Project using the ASK CLI on another computer

I have a skill under development at the moment that is working fine on one computer. I can

ask deploy

with no problems.

I then checkout the code on another computer. Using the same credentials the ask deploy command fails with the following message...

{
   
  "skill": {
   
    "resources": [
      {
   
        "action": "CREATE",
        "errors": [
          {
   
            "message": "The trigger setting for the Lambda arn:aws:lambda:us-east-1:xxxxxxxxxxxx:function:xxxxxxx is invalid."

A partially generated .ask/ask-states.json file is generated.

If I drop in the .ask/ask-states.json file from the first computer everything works fine.

Should the .ask/ask-states.json file be checked in? If not what is the process for being able to correctly initialise an existing project on a different computer (once the source code has been checked out)?

If it makes a difference, the project is setup to use cloudformation templates.

ask cli
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

KirkC@Amazon avatar image
KirkC@Amazon answered

Hi. I reached out to our ASK CLI engineering team and they recommended reviewing the ASK CLI's FAQ found on GitHub here:
https://github.com/alexa/ask-cli/blob/develop/docs/FAQ.md#q-since-v2-ask-cli-removes-ask-clone-command-what-should-i-do-to-download-my-skill-project

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.