question

AlexaWorld avatar image
AlexaWorld asked

ask deploy error with EU-WEST-1

I got the error "custom - object has missing required properties" when I try to deploy my skill with a function on eu-west-1. With us-east-1 everything works as expected.

Skill and Function was updated, but not the skill endpoint.

1. Create a skill in the developer console

2. Create a function in the aws console (region=eu-west-1)

3. Link "Alexa Skills Kit" Qualification-ID to Skill ID

4. Link Skill Endpoint "Default Region" to the function

5. Build the skill

6. ask clone

7. ask deploy

I tried other profiles to clone and deploy. Same behavior.
Same when I use "ask new" and change the target to a eu-west-1 function later.

What can I do?

-------------------- Update Skill Project --------------------
Skill Id: amzn1.ask.skill.fe58d2cc-51bb-4066-96f8-7a99360e284e
Skill deployment finished.
Model deployment finished.
Lambda deployment finished.
Lambda function(s) updated:
  [Lambda ARN] arn:aws:lambda:eu-west-1:977739547106:function:ask-custom-mist-default
[Info]: No in-skill product to be deployed.
Call enable-skill error.
Error code: 403
{
  "message": "Skill is not ready for enablement.",
  "violations": [
    {
      "message": "custom - object has missing required properties ([\"endpoint\"])"
    }
  ]
}
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

sungyoo avatar image
sungyoo answered

Hey @AlexaWorld in skill.json, if you are just providing your Lambda function name, please provide the full Lambda ARN!

Please refer to this tech doc as if you only put Lambda ARN in developer console for Default, it defaults to us-east-1!

https://developer.amazon.com/docs/smapi/ask-cli-intro.html#deploy-lambda-details

10 |5000

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