I have performed aws configure
and ask configure
after installing ask-cli.
While setting up new skill using ask new
selected NodeJS, AWS with CloudFormation.
Trying to deploy the skill using ask deploy
, getting [Error]: CliError: The CloudFormation deploy failed for Alexa region "default": Access Denied
.
Tried setting the region in ~/.aws/config and in ~/.aws/credentials , still running into same error.
What should be done to fix the issue?
I've been able to deploy.
After running aws configure
, I called ask new
, and I think the solution was to not select AWS With CloudFormation but AWS Lambda :
I wanted to use an existing skill that I previously created in the web UI. So I created two folders: lambda
and skill-package
. Then I used ask init
saying I don't want to use AWS CloudFormation to deploy:
Next, I added my region in ask-resources.json
, under skillInfrastructure :
{
"askcliResourcesVersion": "2020-03-31",
"profiles": {
"default": {
"skillMetadata": {
"src": "./skill-package"
},
"code": {
"default": {
"src": "./lambda"
}
},
"skillInfrastructure": {
"type": "@ask-cli/lambda-deployer",
"userConfig": {
"runtime": "nodejs12.x",
"handler": "index.js",
"awsRegion": "eu-west-1"
}
}
}
}
}
And I finished with ask deploy
that worked!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.