首页 > 解决方案 > ASK-CLI 部署不适用于托管“使用 CloudFormation 的 AWS” - Alexa 区域“默认”:访问被拒绝

问题描述

我已经执行aws configureask configure在安装 ask-cli 之后。在使用选定的 NodeJS、AWS 和 CloudFormation
设置新技能时。 尝试使用、getting来部署技能。 尝试在~/.aws/config~/.aws/credentials中设置区域,仍然遇到同样的错误。 应该怎么做才能解决这个问题?ask new
ask deploy[Error]: CliError: The CloudFormation deploy failed for Alexa region "default": Access Denied

技能创造 在此处输入图像描述

部署技能时出错 在此处输入图像描述

标签: amazon-web-servicesaws-lambdaalexaalexa-skills-kit

解决方案


我已经能够部署。

运行后aws configure,我打电话ask new,我认为解决方案是不选择AWS With CloudFormation,而是选择AWS Lambda截屏

我想使用我之前在 Web UI 中创建的现有技能。所以我创建了两个文件夹:lambdaskill-package. 然后我ask init说我不想使用AWS CloudFormation来部署: 截屏

接下来,我ask-resources.jsonSkillInfrastructure下添加了我的区域:

{
  "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"
        }
      }
    }
  }
}

我完成了ask deploy这项工作!


推荐阅读