"Failed to deploy." error for single stream sample
koskoseu opened this issue · 5 comments
Hi,
I went through the other (closed) issue on the same topic, and no joy.
I have both ask and awscli set up correctly, as far as I can see (see below for output of executing test commands on both), and a skill.json file in the same folder.
Adding --debug provides no additional output.
Test that awscli is set up properly:
username@ubuntu:~/work/alexa-radio/skill-sample-nodejs-audio-player/single-stream$ aws lambda list-functions
{
"Functions": [
{
"TracingConfig": {
"Mode": "PassThrough"
},
"Version": "$LATEST",
"CodeSha256": "REDACTED",
"FunctionName": "radiopresets",
"VpcConfig": {
"SubnetIds": [],
"SecurityGroupIds": []
},
"MemorySize": 128,
"RevisionId": "REDACTED",
"CodeSize": 9908,
"FunctionArn": "arn:aws:lambda:us-east-1:REDACTED:function:radiopresets",
"Environment": {
"Variables": {
}
},
"Handler": "lambda_function.lambda_handler",
"Role": "arn:aws:iam::REDACTED:role/AlexaRadioSearchPresets",
"Timeout": 5,
"LastModified": "2018-03-06T11:56:14.933+0000",
"Runtime": "python2.7",
"Description": ""
}
]
}
Test that ASK is set up properly (output shows a previously deployed, unrelated, skill)
username@ubuntu:~/work/alexa-radio/skill-sample-nodejs-audio-player/single-stream$ ask api list-skills
{
"skills": [
{
"apis": [
"custom"
],
"lastUpdated": "2018-02-11T10:42:03.546Z",
"nameByLocale": {
"en-US": "RadioPresets"
},
"publicationStatus": "DEVELOPMENT",
"skillId": "amzn1.ask.skill.[REDACTED]",
"stage": "development"
}
]
}
File listing in current folder
total 32
drwxrwxr-x 4 username username 4096 Mar 6 14:28 .
drwxrwxr-x 6 username username 4096 Mar 6 14:06 ..
drwxrwxr-x 5 username username 4096 Mar 6 14:15 lambda
drwxrwxr-x 2 username username 4096 Mar 6 14:10 models
-rw-rw-r-- 1 username username 7130 Mar 6 14:06 README.md
-rw-rw-r-- 1 username username 5207 Mar 6 14:28 skill.json
username@ubuntu:~/work/alexa-radio/skill-sample-nodejs-audio-player/single-stream$
Command line and output
username@ubuntu:~/work/alexa-radio/skill-sample-nodejs-audio-player/single-stream$ ask deploy --debug
[Error]: Failed to deploy. Please ensure current working directory is the root of your skill project.
Any insight appreciated.
I think I nailed it down. Can you try to create a .ask
directory to your project and add a file ./.ask/config
File content :
{
"deploy_settings": {
"default": {
"skill_id": "",
"was_cloned": false,
"merge": {
"skillManifest": {
"apis": {
"custom": {
"endpoint": {
"uri": "your_lambda_function_name"
}
}
}
}
}
}
}
}
(feel free to adjust the name of the lambda function)
This file is in my .gitignore
and should not be.
Let me know if this fixes your issue, I will add the file back to the repo.
It fixed it for me. Thanks!
great - I pushed the changes to our staging repo for review and then I will update this one.
Do you know if the schema for this .ask/config file is documented anywhere? Ia am having a hard time finding it.
I am afraid the .ask/config schema is not documented.
https://developer.amazon.com/docs/smapi/ask-cli-command-reference.html#