我正在尝试将模板配置与 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" : "*"
}
]
}
}
我不确定是什么导致此模板配置文件失败?我不知道我该如何调试?