amazon-web-services - ASK-CLI 部署不适用于托管“使用 CloudFormation 的 AWS” - Alexa 区域“默认”:访问被拒绝
问题描述
我已经执行aws configure
并ask 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
解决方案
我已经能够部署。
运行后aws configure
,我打电话ask new
,我认为解决方案是不选择AWS With CloudFormation,而是选择AWS Lambda:
我想使用我之前在 Web UI 中创建的现有技能。所以我创建了两个文件夹:lambda
和skill-package
. 然后我ask init
说我不想使用AWS CloudFormation来部署:
接下来,我ask-resources.json
在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"
}
}
}
}
}
我完成了ask deploy
这项工作!
推荐阅读
- r - 如何重命名包含R中反斜杠的列中的字符串
- javascript - 匹配多个字母出现的确切次数
- mysql - 如何设置 mysql 数据库的从属复制以进行开发?
- azure - 运行 Terraform 脚本时绕过标记强制执行 Azure 策略分配的最佳方法是什么?
- filemaker - 隔夜脚本在设置字段返回脚本错误 201
- python - 使用 matplolib 子图在散点图中绘制 8 对不同的 (x,y)
- c++ - c ++显式构造函数不阻止double到int的转换
- python - Pandas - 更改单元格值以使它们等于与整行平均值的偏差?
- javascript - 使用 res.render get 后如何将数据发布到相同的 ejs 视图或部分?
- oauth - 通过浏览器退出 OAuth 2