gpt4 book ai didi

amazon-web-services - AWS Cloudformation 模板配置无效

转载 作者:行者123 更新时间:2023-12-03 07:28:42 25 4
gpt4 key购买 nike

enter image description here我正在尝试将模板配置与 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" : "*"
}
]
}
}

我不确定是什么原因导致此模板配置文件失败?我不知道如何调试这个?

最佳答案

我遇到此错误是因为 codepipeline 配置文件使用与标准 cloudformation 参数文件不同的格式。请参阅此要点 -> https://gist.github.com/g-a-d/4bc7f716bc57e42b64e1ef450be9bae8

关于amazon-web-services - AWS Cloudformation 模板配置无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44255949/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com