【发布时间】:2017-10-30 13:22:28
【问题描述】:
我正在尝试将模板配置与 aws cloudformation 一起使用(使用 aws codepipeline)。这个想法是为不同的堆栈或更改集(测试或产品堆栈)使用相同的 SAM 模板的不同配置文件。我做了所有的配置像
Template* build-output::ciSamTemplate.yml
Template configuration build-output::ciDevTagConfig.json
但我收到错误“模板配置无效”。我的模板配置文件具有以下最低配置。
{
"Parameters" : {
"env" : "dev",
"apiStage" : "tagDev"
},
"StackPolicy" : {
"Statement" : [
{
"Effect" : "Allow",
"NotAction" : "Update:Delete",
"Principal": "*",
"Resource" : "*"
}
]
}
}
我不确定是什么导致此模板配置文件失败?不知道怎么调试?
【问题讨论】:
-
遇到了同样的问题,检查了cloudwatch日志看是否有任何东西,还确保给cloudformation足够的权限来创建资源。但是“计算机说不”……
标签: amazon-web-services aws-codepipeline amazon-cloudformation