1
votes

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?

Skill creation enter image description here

Error deploying skill enter image description here

1
I have the same issue. Did you find a solution? If yes, please share. - AymKdn
I haven't found any solution - Divya

1 Answers

1
votes

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: screenshot

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: screenshot

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!