question

windowsinstalls avatar image
windowsinstalls asked

"CLI doesn't support sourceDir deploy when the endpoint of custom/default is not Lambda."

Hello, I'm trying to deploy a custom Skill with the ASK CLI tool. I've been using this manifest for a while and it's stopped working. I've tried to edit the JSON to reflect even the demos, with no results. Can anyone help?


The Error I'm getting is

[Error]: CLI doesn't support sourceDir deploy when the endpoint of custom/default is not Lambda.


My Skill Manifest Includes the following:

   "apis": {
      "custom": {
        "endpoint": {
          "sourceDir": "lambda/custom",
          "uri": "<<NAME HERE>>"
        },
        "interfaces": [
          {
            "type": "RENDER_TEMPLATE"
          }
        ]
      }
  },

and my .ask/config file contains this:

{
  "deploy_settings": {
    "default": {
      "skill_id": "",
      "resources": {
        "lambda": [
          {
            "functionName": "alexaNewSkill-test",
            "alexaUsage": [
              "custom/default"
            ],
            "codeUri": "lambda/custom",
            "runtime": "python3.6",
            "handler": "hello_world.handler"
          }
        ]
      }
    }
  }
}
alexa skills kitalexaask cliask sdk
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

Pan@Amazon avatar image
Pan@Amazon answered

If you are using ASK CLI v1.x.x that is correct. There is ASK CLI X, where you can specify an AWS resource server to deploy your backend to using a CloudFormation script.

4 comments
10 |5000

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

windowsinstalls avatar image windowsinstalls commented ·

I'm still having this issue. I've tried updating to the latest version with no results. The way you you described it, it would seem I have it correct? If so, why would I be having this issue?

0 Likes 0 ·
Pan@Amazon avatar image Pan@Amazon windowsinstalls commented ·

Here is an example skill.json from the Alexa Cookbook. Make sure that your skill code directory structure matches and you should be able to deploy.

0 Likes 0 ·
Rohit Yadav avatar image Rohit Yadav Pan@Amazon commented ·

Hey @Pan@Amazon,

I am using ASK CLI v2.1.1 here when I run the ASK DEPLOY command it shows unexpected property error for $.manifest.custom.endpoint for "sourceDir" : "lambda/custom". What I am missing here? Is is expecting uri ARN but my lambda is on local drive. Please help me on this.

0 Likes 0 ·
Show more comments